Robotics & Embedded
Simon Game in Verilog
- Status
- Completed
- When
- ~Nov 2025
A two-player memory game in Verilog, built on the same controller-and-datapath split as my LC-3 processor. The FSM owns game flow (generate, play back, read input, judge, advance); the datapath owns sequence storage and comparison. Verified module by module before full-game simulation and FPGA deployment.
Debugging
SymptomCounters read stale values (e.g. i_exceed).
CauseIncrements and clears generated combinationally inside next-state logic fired before the state changed.
CheckedWaveforms before and after.
FixThree always-blocks: combinational outputs, pure next-state logic, and a clocked block owning all _inc/_clr signals.
SymptomGame behavior diverged from spec.
CauseMisread: the game returns to INPUT after every successful REPEAT, growing the sequence by one each round.
FixCorrected state flow: INPUT, PLAYBACK, REPEAT, then INPUT or DONE.