Professional Documents
Culture Documents
State Machine Encoding
State Machine Encoding
Combinational logic
Reg
Machine :
State Transition Graph State Machine Synthesis Process
Describes state machine in terms of its input and output at that particular state and its transition to the next state.
It generates a gate-level circuit based on machines specifications. It allocates state register and assigns binary codes to represent symbolic states,this process is called Encoding.
Consider the figures shown below which represent functionally identical state machines M1 and M2 with different encodings.
Binary codes within the bubbles represent state encoding . Labels at the transition edges represent the probabilities that transitions
will occur.
Sum of all the probability must equal 1. E[M] represents expected number of state bit transitions and is
given by sum of products of edge probabilities and their associated number of bit flips as given by encoding.
Fewer transitions lead to lower power dissipation. Fewer transitions are propagated into combinational logic of machine.
A large state machine dissipates more power because more gates and nodes toggle in the circuit.
area minimization but it may not be desirable for power dissipation because the expected transition is high.
Problem 3 : If states are encoded to minimize power dissipation , the area has
to be increased.
One solution to above problems is to use a subset of states that spans high
probability edges i.e encode the state incident to high probability edges to reduce E[M].
states of a CPU have very low transition probability whereas states like instruction fetch and memory access have very high probabilities.
y To measure the probabilities of state machine behavioral level