HDLbits
Browse Problems

Circuits/Sequential Logic

Q6c: One-Hot Next-State Logic

medium
fsmone-hotnext-state

Use 001 for idle, 010 for one high seen, and 100 for two or more consecutive highs. A low input returns to idle. Invalid encodings also recover to idle.