A programmable central pattern generator with bounded output