This explains how a state machine works. The machine can only be in one state at a time. The state can be connected to a logic port in the scheme by using a unique name for the state. The machine enters a new state if a condition is true. The condition is an output from the scheme.
There are 3 symbols in a state diagram: Init, State, Condition.
- Init: This is the initial state, the start position, of the state machine. A state machine may only have one initial state.
- State: This represent one state in a state machine.
- condition: a connection with the schematic to change to another state.
The connection with the schematic works with: State output and State Input
- State output: This is the Boolean representation of a state. The state and the state output are connected by their names.
- State Input: This is the driving source for one (or more) conditions. The state input and the condition are connected by the same name.