HDLbits
Browse Problems

Circuits/Building Larger Circuits

FSM: One-Hot Logic Equations

medium
fsmone-hotnext-state

Use one-hot states for idle, one high seen, and two highs seen. On x=1, progress through the states; on x=0, return to idle. Implement the next-state logic directly.