Generic State Machine
Generic State Machine
Standard FSM is defined for one active state at any given time Multiple active states are used for describing pipeline and multiple state machines
A generic state machine One input, one output and n number states
Conditional outputs depends on states and input of the system SM chart is constructed by SM blocks An eg.
Derivation of SM chart
Similar to derivation of state graph Step 1: Draw the block diagram of control unit Step 2: Define the input and output signals to control the network Step 3: Construct SM chart that tests the input signals to generate proper sequence of output signal An eg: SM chart for binary multiplier
VHDL code conversion can be done in a straightforward process CASE statement can be used to specify the states IF statement can be used for conditional boxes
VHDL code
Realization of SM Charts
Similar to state graph realization Consists combinational sub network, together with flip flops Should be in reduced form (reducing redundant states) Before deriving next state, a state assignment must be made
An eg.