HDLbits
Browse Problems

Circuits/Sequential Logic

One-Hot FSM

medium
fsmone-hotsequential

Use states 0001, 0010, 0100, and 1000. Reset to the first state. Advance to the next state only when enabled, wrapping after the fourth state.