Chapter 9 - Simplification of Sequential Circuits
Chapter 9 - Simplification of Sequential Circuits
Equivalent States
States S1, S2, , Sj of a completely specified sequential circuit are said to be equivalent if and only if, for every possible input sequence, the same output sequence is produced by the circuit regardless of whether S1, S2, , Sj is the initial state. Let Si and Sj be states of a completely specified sequential circuit. Let Sk and Sl be the next states of Si and Sj, respectively for input Ip. Si and Sj are equivalent if and only if for every possible Ip the following are conditions are satisfied.
The outputs produced by Si and Sj are the same, The next states Sk and Sl are equivalent.
Figure 9.1
Equivalence Relations
Equivalence relation: let R be a relation on a set S. R is an equivalence relation on S if and only if it is reflexive, symmetric, and transitive. An equivalence relation on a set partitions the set into disjoint equivalence classes. Example: let S = {A,B,C,D,E,F,G,H} and R = {(A,A),(B,B),(B,H),(C,C),(D,D),(D,E),(E,E),(E,D),(F,F),(G,G),(H,H), (H,B)}. Then P = (A)(BH)(C)(DE)(F)(G) Theorem: state equivalence in a sequential circuit is an equivalence relation on the set of states. Theorem: the equivalence classes defined by the state equivalence of a sequential circuit can be used as the states in an equivalent circuit.
1 C/1
A/1 B/
0 A/ 1
Figure 9.2
Partition blocks (ABCDE) 11100 00011 (ABC) (DE) CCB DE BEE BA (A) (BC) (DE) C CB DE B EE BA (A) (BC) (D) (E) C CB D E B EE B A (A) (BC) (D) (E) States B and C are equivalent
Figure 9.3
(b)
Figure 9.4
(b)
Figure 9.5
(b)
Figure 9.6
B C D E
PK = (A)(BC)(D)(E) (f)
Figure 9.7
PK = (AD)(BE)(CF)(G)(H) (c)
Figure 9.8
Incompatible states: two states are said to be incompatible if they are not compatible.
Compatibility Relations
Compatibility relation: let R be a relation on a set S. R is a compatibility relation on S if and only if it is reflexive and symmetric. A compatibility relation on a set partitions the set into compatibility classes. They are typically not disjoint. Example: let S = {A,B,C,D,E} and R = {A,A),(B,B),(C,C),(D,D),(E,E),(A,B),(B,A),(A,C),(C,A), (A,D), (D,A),(A,E),(E,A),(B,D),(D,B),(C,D),(D,C),(C,E),(E,C)} Then the compatibility classes are (AB)(AC)(AD)(AE)(BD)(CD)(CE)(ABD)(ACD)(ACE) The incompatibility classes are (BC)(BE)(DE) Compatible pairs may be found using implication tables Maximal compatibles may be found using merger diagrams
B C D E F G H
AC BG AE AC AD AC CG CD A BC AC AB AC BD AG AD B CG CE AG DG AE EG GH DE C
AH DH DG CD AD E F G
Merger diagrams
B B C
A (a) B
A (b) C B
A E (c) D F (d)
Figure 9.11
B A
C D A
C D
H G (a) F
H G (b) F
Figure 9.12
Minimization Procedure
Select a set of compatibility classes so that the following conditions are satisfied
Completeness: all states of the original machine must be covered Consistency: the chosen set of compatibility classes must be closed Minimality: the smallest number of compatibility classes is used
Let L be the lower bound on the number of states needed in the minimized circuit Then L = maximum(NSMI1, NSMI2,, NSMIi)
where NSMIi = the number of states in the ith group of the set of maximal incompatibles of the original circuit.
Figure 9.14
Figure 9.15
x 1 A'/A'/-
Figure 9.16
(g)
N state/output ext
Figure 9.17
x Present 0 1 state A A/0 B/0 B C D A/0 C/0 C/1 (a) C/0 D/0 A/0
2
y1 y2
3
y1 y2
00 01 11 10
10 11 01 00 (b)
00 10 11 01
Figure 9.18
Figure 9.19
x y2 y1 00 01 11 y2 10 0 D2 (c) 0 1 1 0
x 1 1 0 y1 1 y2 0 y2 y1
x 0 00 01 11 10 1 1 1 0 D1 (d)
x 1 0 0 y1 0 1
Figure 9.20
Figure 9.21
Figure 9.22
y1 0 1
0 A B
y2
1 D C
y1 0 1
0 A C
y2
1 D B
y1 0 1
0 A C
y2
1 B D
(a)
(b)
(c)
Assignment 1
Assignment 2
Assignment 3
Figure 9.23
(b)
Figure 9.24
Figure 9.24
Figure 9.26
CD
AB
AD
AE
BC AC
BD
DE
Closed subgraph CE
y3 00 A
2 3
y1
01 D
6 7
11 B
4 5
10 C
0 y1 1
1
E y2 (c)
Figure 9.27
x 00
4 5
01
12 13
11
8 9
10
A 000 001/0 110/0 B 110 000/1 010/1 C 100 001/0 000/0 D 010 000/0 110/1 E 001 010/0 100/0 Y3 Y2 Y1/z (a) y2
00
1
01
3 7
d
15
d
11
y1 d
11
2
d
6
d
14
d
10
10
1 y3 (b)
xy3 y2 y1 00
1 5 13 0
x 00
4
xy3 10 1 y2 y1 00
1 5 13 0
x 00
4
01
12
11
8 9
01
12
11
8 9
10 1
y2 y1
xy3
0
x 00 1
1 5 4
01 1
12 13
11
8 9
10
00 01
01
3 7
d
15
d
11
1 y1 d
10
01
3
1
7
d
15
d
11
d
3 7 15
d
11
y1 d 11 y2 1 10
y1 d
y2
11
2
d
6
d
14
11 y2
2
d
6
d
14
d
10
d
2 6
d
14
d
10
10 y3 (c)
10 y3 (d)
y3 (e)
Figure 9.28
Figure 9.29
Present block
P2: B21 B22 P3: B31 B32
Input 0 1
B32 B31 B21 B22 B32 B31 B21 B22
0,1
B22
0,1
B31
(a)
Figure 9.30
0,1 (b)