<aside>
🎰 Abstract machine that can be in exactly one of a finite number of states at any given time. Can change from one state to another in response to external inputs, and is defined by a list of its states, initial state, and conditions for each transition.
</aside>
- State: condition at a particular time
- Kernel: memory
- Combinational Circuit:
Approach to the Design
- Draw the state transition diagram
- Create the state transition table
- Encode the states on the state transition table
- Derive the logic expression, minimize them
- Create the output table, encode it
- Derive the logic expressions, minimize them
- Draw the circuit and implement it
Automatic Door Example
- Inputs
- No person detected → encode = 0
- Person detected → encode = 1
- States
- Door open → encode = 1
- Door closed → encode = 0
State Table
Notice that the next states → same value as inputs
IKEA elevator example
Controller will check the current floor and current input, and transition if needed
- Can only be on one floor at a time (ground or first)