Reduction of State Tables
Reduction of State Tables
Reduction of State Tables
- Effect of Reduction:
● For example, reducing a table from 9 to 8 states can reduce the number
of flip-flops from 4 to 3, cutting down on hardware.
Intro.
- State Assignment:
● After state reduction, assign binary codes to states (state assignment).
● The choice of state assignment affects the efficiency and complexity of the
circuit.
● Finding an optimal state assignment is challenging but can be guided by design
principles (covered in Sections 15.7-15.8).
- Next Steps:
● After assigning states, derive flip-flop input equations to realize the sequential
circuit.
FSM Design Flow
Statement of Problem
State Graph
Choice of F/F
State Table
Derivation of
Reduction of States
F/F Input Equation and
N1 P Z1
X ↓ P Q iff R S and Z1=Z2
R
Z2
N2 Q λ(P,x) = λ(Q, x) : output
↓
S
δ(P,x) = δ(Q, x) : next state
x: any single input
Unit 15 4
Elimination of Redundant States (1/5)
When setting up states, some extra states may be included
eliminate these states
A previous example
Check 4 consecutive inputs
X Z
as a group , then reset
Z = 1 when X = 0101 or 1001
CLK
Unit 15 5
Elimination of Redundant States (2/5)
A
0 1
B C
0 1 0 1
D E F G
0 1 0 1 0 1 0 1
H I J K L M N P
0 1 0 1/1 0 1/1 0 1
0 1 0 1 0 1 0 1
Unit 15 6
Initial State and State Transitions:
D E
After eliminating redundant states, the state 1/0
table is reduced, and a simplified state diagram -/0 0/0
is created. The final state diagram is much
simpler and identical to the previous one, except
for the state designations. H J
Unit 15 9
Determination of State Equivalence by Using an
Implication Table (1/4)
Unit 15 10
Determination of State Equivalence by Using an
Implication Table (2/4)
Implication chart construction N.S.
1. State comparison by implied P.S. x 0 x 1 Z
pair (only for the-same-output a d c 0
pair)
b f h 0
d–f
b c–h Output shall be the same c e d 1
c ╳ ╳ d a e 0
d a–d a–f ╳ e c a 1
c–e e–h
e ╳ ╳ a–d ╳ f f b 1
c–e
b–d a–b g b h 0
f ╳ ╳ e–f ╳ c–f
b–d a–b h c g 1
g c–h b–f ╳ e–h ╳ ╳
h ╳ ╳ d–g ╳ a–g b–g ╳
c–e c–f
a b c d e f g
Unit 15 11
Determination of State Equivalence by Using an
Implication Table (3/4)
2. Check implied pair iteratively N.S.
P.S. x 0 x 1 Z
a da c 0
b f h 0
d–f ad c ec da 1
b c–h
c ╳ ╳ ce d a e 0
e c a 1
d a–d a–f ╳
c–e e–h f f b 1
e ╳ ╳ a–d ╳
c–e g b h 0
b–d a–b
f ╳ ╳ e–f ╳ c–f
b–d a–b h c g 1
g c–h b–f ╳ e–h ╳ ╳
h ╳ ╳ d–g ╳ a–g b–g ╳
c–e c–f
a b c d e f g
Unit 15 12
Determination of State Equivalence by Using an
Implication Table (4/4)
N.S.
P.S. x0 x 1 Z
a a c 0
ad b f h 0
ce c c a 1
f f b 1
g b h 0
h c g 1
Unit 15 13
Equivalent Sequential Circuits (1/3)
Definition : N1 N2 if P in N1 Q in N2
or S in N2 T in N1
N1 N2
Ex: x 0 x 1 x 0 x 1 x 0 x 1 x 0 x 1
A B A 0 0 S0 S3 S1 0 1
B C D 0 1 S1 S3 S0 0 0
C A C 0 1 S2 S0 S2 0 0
D C B 0 0 S3 S2 S3 0 1
C S3 A S3
Method 2: By implication S0
D S1 C S1
table B S3 C S3
1. Construct implication S1
A S0 B S0
table by listing all state B S0 C S0
S2
pairs. X out pairs with A S2 B S2
different outputs C S2 A S2
S3
D S3 C S3
A B C D
Unit 15 15
Equivalent Sequential Circuits (3/3)
C S3 A S3
S0
D S1 C S1 2. X out additional
B S3 C S3 nonequivalent state pairs
S1
A S0 B S0
B S0 C S0
S2
A S2 B S2
C S3 A S3
C S2 A S2 S0
S3 D S1 C S1
D S3 C S3
B S3 C S3
A B C D S1
A S0 B S0
B S0 C S0
S2
A S2 B S2
C S2 A S2
S3
D S3 C S3
A B C D
A S2 B S0 C S3 D S1
Unit 15 16
Incompletely Specified State Tables (1/3)
Ex: X B
Z
Circuit A Sequential Circuit Circuit C
Subsystem
t0 t1 t2 t0 t1 t2
X 1 0 0 Z 0
1 1 0 1
If don’t cares are present, the state table is called incompletely specified
Unit 15 17
Incompletely Specified State Tables (2/3)
N.S. Z
S0 P.S. x 0 x 1 x 0 x 1
0/0 1/– 0/–
S0 – S1 – –
S1
0/– 1/–
0/1
S1 S2 S3 – –
S2 S0 – 0 –
S2 S3
S3 S0 – 1 –
1/– 1/–
Unit 15 18
Incompletely Specified State Tables (3/3)
N.S. Z
P.S. x 0 x 1 x 0 x 1
S0 – (S0) S1 – (0) –
S1 S 2S0 S3 – (1) –
S2 S0 (S ) 0
– 1 –
S3 S0 – (S3) 1 –
States reduction
N.S. Z
P.S. x0 x 1 x 0 x 1
S0 S0 S1 0 –
S1 S0 S1 1 –
Unit 15 19