Chap 02 P2 KExamples
Chap 02 P2 KExamples
1
Specification of BCD-to-Excess3
2
Formulation of BCD-to-Excess-3
3
Placing 1 on K-maps
4
Expressions for W X Y Z
W(A,B,C,D) = Σm(5,6,7,8,9)
+d(10,11,12,13,14,15)
X(A,B,C,D) = Σm(1,2,3,4,9)
+d(10,11,12,13,14,15)
Y(A,B,C,D) = Σm(0,3,4,7,8)
+d(10,11,12,13,14,15)
Z(A,B,C,D) = Σm(0,2,4,6,8)
+d(10,11,12,13,14,15)
5
Optimization – BCD-to-Excess-3
6
Minimize K-Maps
W minimization
W = A + BC + BD
7
Minimize K-Maps
X minimization
X = BC’D’+B’C+B’D
8
Minimize K-Maps
Y minimization
Y = CD + C’D’
9
Minimize K-Maps
Z minimization
Z = D’
10
Two level circuit implementation
Have equations
• W = A + BC + BD = A + B(C+D)
• X = B’C + B’D + BC’D’ = B’(C+D) + BC’D’
• Y = CD + C’D’
• Z = D’
Factoring out (C+D) and call it T
Then T’ = (C+D)’ = C’D’
• W = A + BT
• X = B’T + BT’
• Y = CD + T’
• Z = D’
11
Create the digital circuit
Implementing the
second set of
equations where
T=C+D results in a
lower gate count.
This gate has a
fanout of 3
12
BCD-to-Seven-Segment Decoder
Specification
• Digital readouts on many digital products often use LED
seven-segment displays.
• Each digit is created by lighting the appropriate
segments. The segments are labeled a,b,c,d,e,f,g
• The decoder takes a BCD input and outputs the correct
code for the seven-segment display.
13
Specification
14
Formulation
15
Optimization
16
Note on implementation
17