Professional Documents
Culture Documents
Outline
State Table
State Diagram
Definition
State
Current
State
Next
state
Number
of
States
Mealy
Circuits
Moore
Circuits
State Table
The State Table is used to show the
circuit output(s) and next state for
each combination of inputs and
current state.
Numb
er of
Rows
Numb
er of
Colum
ns
Number of inputs +
number of outputs + 2 x
number of FFs + number
of FFs inputs
Example
Analyze the following sequential circuit
1
Number of Inputs:
Number of outputs:
1
Number of flip flops:
2
Number of States:
4
2+1
=
Number of rows:2
8
Number of Columns:
1+1+2x2+2x
2 = 10
Mea
Mealy or Moore?
ly
X'
Q0
J1
SET
Q1
X
Q0
K1CLR Q1
X
Q1
J0
SET
Q0
K0 CLR Q0
X'
CLK
X'
Q0
Z = Q1.Q0.X
J1 = Q0.X'
K1 = Q0 + X
J0 = Q1 + X
K0 = X
J1
SET
Q1
X
Q0
K1 CLR Q1
X
Q1
0
J
X'
K0
SET
CLR
Q0
Q0
CLK
Current State
Input Flip Flop Inputs Next State
Output
Q1
0
0
0
0
1
1
1
1
Q0
0
0
1
1
0
0
1
1
X
0
1
0
1
0
1
0
1
J1
0
0
1
0
0
0
1
0
K1
0
1
1
1
0
1
1
1
J0
0
1
0
1
1
1
1
1
K0 Q1* Q0*
1
0
0
0
0
1
1
1
0
0
0
1
1
1
1
0
0
1
1
0
0
0
0
17
Z
0
0
0
0
0
0
0
1
Current
State and
Inputs
yield
Output.
Current
State and
Inputs
yield FF
Inputs.
We only
care about
FF Inputs
in order to
find Next
State.
Note: the
outputs
occur this
cycle and
the next
state in the
next cycle
Exercise
Complete the state table for the
following circuit
X'
Q0
D1
SET
CLR
Q1
Q1
X
X
Q1
TD
0
SET
CLR
Q0
Q0
CLK
9
State Diagram
The information in the state table can
be represented graphically in a state
diagram
Each state is represented by a node
in the diagram
The edges in the diagram represent
the transitions between the states
If there are n flip-flops, there should
be 2n nodes in the diagram.
If there are m inputs, then each node
m
will have 2 outgoing edges from
each node.
Different diagrams for Mealy10and
1/0
1/0
00
1/0
01
10
0/0
0/0
1/1
0/0
11
11
0
1
00
0
01
0
10
0
11
1
1
0
12