Codiode
All tracks
Circuit Lab · Advanced

Finite State Machines

Design Moore and Mealy machines for any sequential behavior. From state diagrams to silicon-ready circuits.

What you will learn

FSMs control behavior in every processor, protocol and controller. This track covers:

  • Moore vs. Mealy fundamentals and output timing difference
  • State diagram to state table to circuit implementation
  • State minimization using the implication chart method
  • State encoding: binary, one-hot, Gray code
  • Sequence detectors (overlapping and non-overlapping), traffic light controller, vending machine FSM
  • Serial adder, protocol handshake FSMs, FSM with datapath
24 problems in 5 sections
24 problems in 5 sections
Section 1

Moore vs Mealy Fundamentals

4
01Moore FSM Output Delay AnalysisAnalyze10 GE02Moore vs Mealy Output AreaAnalyze15 GE03Mealy Output Glitch DetectionAnalyze15 GE04Explicit vs Implicit FSMsAnalyze25 GE
Section 2

State Table and State Diagram Derivation

5
05Mod-6 Counter: Next-State TableBuild15 GE06Mod-7 Counter: Full Next-State Table DesignBuild25 GE07BCD Counter: Next-State Table DerivationBuild15 GE08Counter from State Diagram: ImplementationBuild25 GE09ROM Based State Machine Next State LogicBuild25 GE
Section 3

State Encoding

4
10One Hot Enum Encoding VerificationAnalyze15 GE11Priority Encoder vs One Hot Leading ZeroAnalyze25 GE12Ring Counter: One-Hot Outputs as Decoder ReplacementAnalyze15 GE13Self-Correcting Ring Counter: One-Hot Detection CircuitBuild25 GE
Section 4

Sequence Detectors and Controllers

4
14Overlapping Sequence Detector with TimeoutBuild25 GE15Off By One Cycle in State Machine TimeoutDebug15 GE16Traffic Light with Emergency PreemptionBuild25 GE17UART Receiver State MachineBuild15 GE
Section 5

Debugging FSMs

7
18Debug Sequential: Missing State Machine ResetDebug15 GE19Debug Sequential: Output Logic Glitch in Mealy MachineDebug25 GE20FSM Logic Optimized AwayDebug15 GE21Mixed Assignments in State MachineDebug25 GE22Debugging Sequence Detector LockupDebug15 GE23Incomplete Default State AssignmentDebug15 GE24Missing State TransitionDebug10 GE