Lesson 13: Finite State Machines (FSM)

TL;DR
  • FSM = state + transitions + outputs. It is the standard way to model control logic in digital systems (protocols, controllers, UI flows, sequencing).
  • Moore: output depends only on state → stable outputs, usually 1 clock later.
  • Mealy: output depends on state + input → faster response, sometimes fewer states, but more sensitive to input glitches.
  • Typical Verilog structures: 3-tier (clearest), 2-tier (compact), 1-tier (shortest but harder to maintain).
  • Quartus: You must do Pin Assignments; you should add a minimal SDC create_clock for meaningful timing analysis.

© 2026 Air Supply Information Center (Air Supply BBS)