All tracksRTL · Intermediate
FSM Coding
Code any finite state machine in one, two or three always blocks. Verify Moore vs. Mealy output timing live in the waveform viewer.
What you will learn
FSMs are asked in almost every hardware interview. This track covers:
- One-process, two-process and three-process FSM styles
- Moore FSM and Mealy FSM with visible output timing difference in WaveformViewer
- typedef enum for state encoding (SystemVerilog)
- Binary, one-hot and Gray code encoding with Yosys FF count confirmation
- Sequence detector (overlapping and non-overlapping), sequence generator
- Traffic light controller, vending machine FSM, serial adder
- Valid/ready handshake protocol