Professional Documents
Culture Documents
Principles of Computer Architecture: Miles Murdocca and Vincent Heuring
Principles of Computer Architecture: Miles Murdocca and Vincent Heuring
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-2 Appendix B: Reduction of Digital Logic
Chapter Contents
B.1 Reduction of Combinational Logic and Sequential Logic
B.2 Reduction of Two-Level Expressions
B.3 State Reduction
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-3 Appendix B: Reduction of Digital Logic
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-4 Appendix B: Reduction of Digital Logic
Unreduced
A B C
Reduced
ABC
ABC
F
F
AB C
ABC
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-5 Appendix B: Reduction of Digital Logic
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-6 Appendix B: Reduction of Digital Logic
A B C
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-7 Appendix B: Reduction of Digital Logic
ABC A
A’BC’ A’B’C
B C
A’BC A’B’C’
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-8 Appendix B: Reduction of Digital Logic
Minterm A B C F
AB
00 01 11 10
Index C 1
0 0 0 0 0
1 0 0 1 0
2 0 1 0 0 0 00 1
3 0 1 1 1 0-side 1-side
4 1 0 0 0
5 1 0 1 1
6 1 1 0 1 1A balance tips to the left1or 1 1
right depending on whether
7 1 1 1 1
there are more 0’s or 1’s.
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-9 Appendix B: Reduction of Digital Logic
1 1 1 1
• F = BC + AC + AB
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-10 Appendix B: Reduction of Digital Logic
• F = BC + AC + AB
• The K-map approach yields the same minimal two-level form as
the algebraic approach.
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-11 Appendix B: Reduction of Digital Logic
K-Map Groupings
• Minimal grouping is on the left, non-minimal (but logically equiva-
lent) grouping is on the right.
• To obtain minimal grouping, create smallest groups first.
AB AB
00 01 11 10 00 01 11 10
CD CD
1 2
00 1 00 1
1
4 5
01 1 1 1 01 1 1 1
2
11 1 1 1 11 1 1 1
3
10 1 10 1
3 4
F = A BC + ACD + F = BD + A BC + ACD +
ABC + AC D ABC + AC D
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-12 Appendix B: Reduction of Digital Logic
01 1
11 1 1
10 1 1 1
F=BCD + B D + AB
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-13 Appendix B: Reduction of Digital Logic
AB AB
00 01 11 10 00 01 11 10
CD CD
00 1 d 00 1 d
01 1 1 01 1 1
11 1 1 11 1 1
10 d 10 d
F= BC D + BD F= A B D + B D
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-14 Appendix B: Reduction of Digital Logic
Five-Variable K-Map
• Visualize two 4-variable K-maps stacked one on top of the other;
groupings are made in three dimensional cubes.
AB AB
00 01 11 10 00 01 11 10
CDE CDE
000 1 100 1
001 1 1 101 1 1
011 1 1 111 1 1
010 1 1 110
F = A C D E + A B DE + B E
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-15 Appendix B: Reduction of Digital Logic
Six-Variable K-Map
• Visualize four 4-variable K-maps stacked one on top of the other;
groupings are made in three dimensional cubes.
ABC ABC
000 001 011 010 000 001 011 010
DEF DEF
000 1 100 1
001 101
011 1 1 111
010 1 1 110
ABC ABC
100 101 111 110 100 101 111 110
DEF DEF
000 1 100 1
001 101
011 111
010 110
G = B C EF + A B DE
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-16 Appendix B: Reduction of Digital Logic
A B C
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-17 Appendix B: Reduction of Digital Logic
Map-Entered Variables
• An example of a K-map with a map-entered variable D.
AB
00 01 11 10
C
0 D
1 1 1
F = BC + ABCD
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-18 Appendix B: Reduction of Digital Logic
AB
00 01 11 10
C
0 D d E E
1 1 1
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-19 Appendix B: Reduction of Digital Logic
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-20 Appendix B: Reduction of Digital Logic
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-21 Appendix B: Reduction of Digital Logic
Table of Choice
• The prime implicants form a set that completely covers the func-
tion, although not necessarily minimally.
• A table of choice is used to obtain a minimal cover set.
Prime Minterms
Implicants
0001 0011 0101 0110 0111 1010 1101
0 00 _ √
* 0 11 _ √ √
* 1 01 _ √
0 __ 1 √ √ √ √
_ _1 1 √ √
* _ 1_ 1 √ √ √
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-22 Appendix B: Reduction of Digital Logic
Set 1 Set 2
Eligible Minterms
Set 000_ 0__1
0001 0011 __11
X 0 0 0_ √
Y 0 _ _1 √ √
Z _ _ 11 √
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-23 Appendix B: Reduction of Digital Logic
Minterm A B C F0 F1 F2
m0 0 0 0 1 0 0
m1 0 0 1 0 1 0
m2 0 1 0 0 0 1
m3 0 1 1 1 1 1
m4 1 0 0 0 1 0
m5 1 0 1 0 0 0
m6 1 1 0 0 1 1
m7 1 1 1 1 1 1
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-24 Appendix B: Reduction of Digital Logic
F0 * 0 00 √
F1 * 0 _1 √ √
F1 * 1 _0 √ √
F2 * _ 1_ √ √ √ √
F1,2 1 1_ √ √ √ √
F0,1,2 * _ 1 1 √ √ √ √ √ √
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-25 Appendix B: Reduction of Digital Logic
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-26 Appendix B: Reduction of Digital Logic
Transition Time
+5V (Fall Time)
10%
A NOT gate 50%
input changes (2.5V)
from 1 to 0
90%
0V
Propagation Delay
(Latency)
Transition Time
+5V (Rise Time)
90%
The NOT gate
output changes 50%
from 0 to 1 10% (2.5V)
0V
Time
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-27 Appendix B: Reduction of Digital Logic
MUX Decomposition
1 00
1 0000
0 01 BC+BC
0 0001 0 10
0 0010 1 11
1 0011
0 0100
1 0101
1 0110 00
0 0111
B C 01
0 1000 F
0 F
1 1001 10
0 1010
11
0 1011
0 1100 0 00
0 1101 1 01
0 1110
1 1111 1 10 B C+ B C A D
0 11
A B C D
B C
OR-Gate Decomposition
• Fanin affects circuit depth.
A BCD AB CD AB C D
A+B+C+D
Initial high fan-in gate
(A + B) + (C + D)
Balanced tree
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-29 Appendix B: Reduction of Digital Logic
State Reduction
• Description of state machine M0 to be reduced.
Input X
Present state 0 1
A C/0 E/1
B D/0 E/1
C C/1 B/0
D C/1 A/0
E A/0 C/1
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-30 Appendix B: Reduction of Digital Logic
Distinguishing Tree
• A next state tree for M0.
(ABCDE)
0 1
(CC)(C)(CC) (AB)(E)(AA)
(AB)(E)(CD)
0 1
(CD)(A)(CC) (EE)(C)(EE)
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-31 Appendix B: Reduction of Digital Logic
Input X
Current state 0 1
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-32 Appendix B: Reduction of Digital Logic
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-33 Appendix B: Reduction of Digital Logic
01 1 1 01 1 01 1
11 11 1 11 1
10 1 1 10 1 10
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-34 Appendix B: Reduction of Digital Logic
X X X
0 1 0 1 0 1
S0S1 S0S1 S0S1
00 00 1 00 1 1
01 1 1 01 1 01 1
11 1 1 11 1 11
10 10 1 10 1
S0 = S 1 S1 = X Z = S1 X + S0 X
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-35 Appendix B: Reduction of Digital Logic
B 1/0
0/0 0/0
E
1/0
A 1/1 0/0
0/0
F 1/1
1/0
C 0/1
Input: 011011100
G
Output: 0 0 1 1 1 1 0 1 0 1/0
Time: 0 1 2 3 4 5 6 7 8 1/0
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-36 Appendix B: Reduction of Digital Logic
Input X
Present state 0 1
A B/0 C/0
B D/0 E/0
C F/0 G/0
D D/0 E/0
E F/0 G/1
F D/0 E/1
G F/1 G/0
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-37 Appendix B: Reduction of Digital Logic
Input X
Present state 0 1
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-38 Appendix B: Reduction of Digital Logic
Input X
Present state 0 1
S2S1S0 S2S1S0Z S2S1S0Z
A': 000 001/0 010/0
B': 001 001/0 011/0
C': 010 100/0 101/0
D': 011 100/0 101/1
E': 100 001/0 011/1
F': 101 100/1 101/0
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-39 Appendix B: Reduction of Digital Logic
Excitation Tables
• In addition to the D flip-flop, the S-R, J-K, and T flip-flops are used
as delay elements in finite state machines.
• A Master-Slave J-K flip-flop is shown below.
J
Q
J Q
CLK
K Q
Q
K
Symbol
Circuit
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-40 Appendix B: Reduction of Digital Logic
01 1 d 01 d 1
11 1 d 1 11 1 d
10 1 d 1 10 d 1
Clocked T Flip-Flop
• Logic diagram and symbol for a T flip-flop.
1 J Q Q
T T
K Q Q
Circuit Symbol
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-42 Appendix B: Reduction of Digital Logic
X
Sequence
Detector CLK
D Q
S0
Q
Circuit
D Q
S1
Q
D Q
S2
Q
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-43 Appendix B: Reduction of Digital Logic
Excitation Tables
• Each table
Qt Qt+1 S R Qt Qt+1 D
shows the set-
tings that must S-R 0 0 0 0 D 0 0 0
be applied at the flip-flop 0 1 1 0 flip-flop 0 1 1
inputs at time t 1 0 0 1 1 0 0
in order to 1 1 0 0 1 1 1
change the out-
puts at time t+1. Qt Qt+1 J K Qt Qt+1 T
J-K 0 0 0 d T 0 0 0
flip-flop 0 1 1 d flip-flop 0 1 1
1 0 d 1 1 0 1
1 1 d 0 1 1 0
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-44 Appendix B: Reduction of Digital Logic
Serial Adder
Time (t) 4 3 2 1 0 4 3 2 1 0 Time (t) No carry Carry state
state
01100 X Z 11010
Serial xi yi 01/1 11/0 01/0
01110 Y
Adder
Cin Cout
00/0 A B 10/0
zi
10/1 00/1 11/1
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-45 Appendix B: Reduction of Digital Logic
0 0 0 0 0 0 0 0 d 0
0 0 1 0 0 1 1 d 1 1
0 1 0 0 0 0 0 0 d 1
0 1 1 1 0 0 0 d 0 0
1 0 0 0 0 0 0 0 d 1
1 0 1 1 0 0 0 d 0 0
1 1 0 1 1 0 1 1 d 0
1 1 1 1 0 0 0 d 0 1
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-46 Appendix B: Reduction of Digital Logic
X
Y
Y
Z
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-47 Appendix B: Reduction of Digital Logic
X DQ
S
Q
Y
CLK
X
Y
Y
Z
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-48 Appendix B: Reduction of Digital Logic
1/0 1__ F
0/0 10_
Input: 0 1 1 1 0 0 1 0 1 C
1/0 11_
Output: 0 0 1 0 0 0 0 0 1
0/1 G
Time: 0 1 2 3 4 5 6 7 8 1/1
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-49 Appendix B: Reduction of Digital Logic
Input X Input X
P.S. 0 1 P.S. 0 1
A B/0 C/0 A: A' B'/0 C'/0
B D/0 E/0 P0 = (ABCDEFG) B: B' D'/0 E'/0
C F/0 G/0 P1 = (ABCD)(EF)(G) C: C' E'/0 F'/0
D A/0 A/0 D: D' A'/0 A'/0
P2 = (AD)(B)(C)(EF)(G)
E A/0 A/1 EF: E' A'/0 A'/1
F A/0 A/1 P3 = (A)(B)(C)(D)(EF)(G)
G: F' A'/1 A'/
G A/1 A/1 P4 = (A)(B)(C)(D)(EF)(G) √ 1
(a) (b) (c)
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-50 Appendix B: Reduction of Digital Logic
Input X Input X
P.S. 0 1 P.S. 0 1
S2S1S0 S2S1S0Z S2S1S0Z S2S1S0 T2T1T0Z T2T1T0Z
A': 000 001/0 010/0 A': 000 001/0 010/0
B': 001 011/0 100/0 B': 001 000/0 010/0
C': 010 100/0 101/0 C': 010 110/0 111/0
D': 011 000/0 000/0 D': 011 011/0 011/0
E': 100 000/0 000/1 E': 100 100/0 100/1
F': 101 000/1 000/1 F': 101 101/1 101/1
(a) (b)
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring
B-51 Appendix B: Reduction of Digital Logic
CLK
Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring