HDLbits
Browse Problems

Circuits/Sequential Logic

Simple One-Hot State Transitions

medium
fsmone-hotsequential

Use one-hot states 001, 010, and 100. Reset to 001; on an enabled rising edge advance to the next state, wrapping from 100 to 001.