Lite / Engineering Complex Systems / Week 24
Week 24: Finite-state machines
This week you will
- Specify a finite-state machine with a state-transition table.
- Implement it in hardware as a register plus next-state logic.
- Implement it in software as a super-loop and compare the two.
Lessons
- Specifying a state machine · about 35 min
A lock that opens only when you type 1-0-1 has to remember something between key presses. What is the least it needs to remember? - A state machine in hardware · about 35 min
Turn a state-transition table into a circuit and it is always the same shape: a register and a cloud of gates. Why that shape? - A state machine in software · about 40 min
The same traffic-light controller can be twelve gates and four flip-flops, or twenty lines of code in a loop. When would you choose each?