A computer needs to control a robot, where the computer sends the following commands:
Do nothing
00
Turn right
01
Turn left
10
Move forward 11
You have to design a circuit that accepts these commands and sends the robot the following signals
Do nothing
000
Turn right
001
010
011
Turn left
101
110
111
Move forward 100
100
So they respectively take 1,3,3 and 2 clock cycles. Until the current command is completed, don't take a look at the next input from the computer.