Ring circuit model of gait generation