A CNN-Based Chip for Robot Locomotion Control