This content isn't available in your language yet; showing English.
Learning

Finite-state machines

Control logic that remembers where it is — Mealy vs Moore, two-process and three-process patterns.

Log in to track your progress.

Mealy vs Moore machines

Reading14 min

Outputs as a function of state (Moore) vs state + input (Mealy) — and when to pick which.

Open in the app

Sample: traffic light FSM

Sample20 min

A two-process Moore FSM cycling through red → green → yellow with a configurable hold count.

Open in the app

Project: coin-operated vending machine

Project45 min

Design an FSM that accepts 5¢ and 10¢ coins, dispenses when total ≥ 25¢, and returns change. Full spec inside.

Open in the app

An unhandled error has occurred. Reload 🗙