Caffeinated Coder
Book an appointment
Lesson 23 · Memory elements and clocks

State machines

A finite state machine is a circuit that remembers which of a few states it is in and moves between them on each clock edge. Follow a traffic light through GREEN, YELLOW and RED: see its state diagram, the flip-flops that hold the state, the next-state logic that reads a timer input, the output logic that drives the lamps, and the difference between Moore and Mealy machines.

12 min9 steps5 questionsBeginner
Fig 23 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.