L12 - Machine Minimization
L12 - Machine Minimization
L12 - Machine Minimization
Roth
15 Reduction of State Tables / State Assignment
15.1 Elimination of Redundant States
15.2 Equivalent States
15.3 Determination of State Equivalence Using an
Implication Table
15.4 Equivalent Sequential Circuits
15.5 Incompletely Specified State Tables
Row Matching
Recall CD player controller
Mealy implementation contained two sets of rows with
same next state and output
Eliminate redundant states
Row matching doesn’t identify “equivalent
states”
Row matching identifies “same state”
Equivalent states are the more general case
D X D A E 0
E C A 1
F F B 1
E X X X G B H 0
H C G 1
F X X X
G X X X
H X X X X
A B C D E F G
C-E F F B 1
E X X X
A-D G B H 0
H C G 1
E-F C-F
F X X X A-B
B-D
B-D B-F A-B
G C-H H-H X E-H X X
A B C D E F G
A-D A-F
D X
C-E E-H
C-E Same state pairs
E X X X
A-D
E-F C-F
F X X X A-B
B-D
B-D B-F A-B
G C-H H-H X E-H X X
A B C D E F G
A-F
D C-E X
E-H
E-F C-F
F X X X A-B
B-D
B-D A-B
G B-F X X X
C-H E-H
C-E C-F
H X X X A-G X
D-G B-G
A B C D E F G
B X
D-F
C-H PS x=0
NS
x=1 z
A D C 0
C X X B F H 0
C E D 1
A-F
D C-E X
E-H
X D
E
A
C
E
A
0
1
F F B 1
E X X A-D X G B H 0
H C G 1
C-F
F X X
X
E-F
B-D
X
X
A-B
B-D A-B
G C-H X
B-F X
X
E-H X X
C-E C-F
H X X D-G X A-G
X
B-G X
A B C D E F G
B X
D-F
C-H PS x=0
NS
x=1 z
A D C 0
C X X B F H 0
C E D 1
A-F
D C-E X
E-H
X D
E
A
C
E
A
0
1
F F B 1
E X X A-D X G B H 0
H C G 1
C-F
F X X
X
E-F
B-D
X
X
A-B
B-D A-B
G
X X
C-H
B-F X
X
E-H X X
C-E C-F
H X X
X
D-G X
X X
A-G
B-G X
A B C D E F G
NS,z
PS x=0 x=1
A A,0 B,0
B C,0 B,0
C A,0 D,1
D C,0 B,0
pairs C X X
Zvi Kohavi,
Switching and Finite Automata Theory
Obtain partition P2
This step is carried out by splitting blocks of P1,
whenever their successors are not contained in a
common block of P1
Iterate process of splitting blocks
If for some k, Pk+1 = Pk, the process terminates
and Pk defines the sets of equivalent states of the
machine
Pk is thus called the equivalence partition
The equivalence partition is unique
P0 = (ABCDEFGH)
P1 is obtained by splitting states having
different outputs NS
P1 =(ABDG)(CEFH) PS
A
x=0
D
x=1
C
z
0
Obtain P2
Block 1 = ABDG, Block 2 = CEFH
NS
D (1) F (2) PS x=0 x=1 z
A B A D C 0
C (2) H (2) B F H 0
C E D 1
D A E 0
E C A 1
A (1) B (1) F F B 1
D G G B H 0
E (2) H (2) H C G 1
Obtain P2 (cont)
Block 1 = ABDG, Block 2 = CEFH
E (2) C (2) NS
C E PS x=0 x=1 z
A D C 0
D (1) A (1)
B F H 0
C E D 1
D A E 0
E C A 1
F (2) C (2) F F B 1
F H G B H 0
B (1) G (1) H C G 1
Obtain P3 PS
NS
x=0 x=1 z
P2 = (ADG)(B)(CEFH) A
B
D
F
C
H
0
0
C E D 1
D A E 0
E C A 1
D (1) A (1) B (2) F F B 1
A D G G B H 0
Obtain P3 (cont)
Split G from block 1
G is 3-distinguishable from A and D
Split F from block 3
F is 3-distinguishable from C, E and H
P3 = (AD)(G)(B)(CEH)(F)
Block 1 = AD, block 2 = G, block 3 = B,
block 4 = CEH and block 5 = F
Obtain P4 NS
PS x=0 x=1 z
P3 = (AD)(G)(B)(CEH)(F) A D C 0
B F H 0
C E D 1
D A E 0
E C A 1
D (1) A (1) F F B 1
A D G B H 0
C (4) E (4) H C G 1
Obtain P4 (cont)
Split H from block 4
H is 4-distinguishable from C and E
P4 = (AD)(G)(B)(CE)(H)(F)
Block 1 = AD, block 2 = G, block 3 = B,
block 4 = CEH, block 5 = H and block 6 = F
Obtain P5
P4 = (AD)(G)(B)(CE)(H)(F)
NS
D (1) A (1) PS x=0 x=1 z
A D A D C 0
C (4) E (4) B F H 0
C E D 1
D A E 0
E C A 1
E (4) C (4) F F B 1
G B H 0
C E
H C G 1
D (1) A (1)
Obtain P5 (cont)
No blocks split from P5
P5 = P4 = (AD)(G)(B)(CE)(H)(F)
P5 = P4 = equivalence partition
Same result as implication table
NS Z
PS x=0 x=1 x=0 x=1
A - B - - A and C can be combined
B C D - - A and D can be combined
C A - 0 -
C and D cannot (outputs differ)
D A - 1 -
NS Z
PS x=0 x=1 x=0 x=1
AC AC BD 0 -
BD AC BD 1 -