Professional Documents
Culture Documents
Homework#06 2005/2
Solution of Homework#06
(1) Draw block diagram to show how to use 3-to-8 lines decoders to produce the
following:
(All decoders have one active-low ENABLE input, active-high binary code inputs,
and active-low outputs. You can use additional components if required)
(a) A 4-to-16 line decoder
(2) Show how to build each of the following single- or multiple-output logic functions
using one or more 74x138 binary decoders and NAND gates.
(Hint: Each realization should be equivalent to a sum of minterms.)
(a) F = ΣX,Y,Z(2,4,7)
(b) F= ∏A,B,C(3,4,5,6,7)
(c) F = ΣA,B,C,D(2,4,6,14)
(3) Using MSI 74x49 BCD to seven-segment decoder and additional hardware to
build a new seven-segment decoder such that the digits 6 and 9 have tails as shown
below.
Seven-segment display
(4) Suppose you would like to use seven-segment display to show characters A, B, C,
D, E and F. So you have to design the code converter circuit to convert binary code
inputs to seven-segment code outputs. If the circuit has an active-high “lamp test”
input which force all LEDs on, and the active-low “blank input” input which force all
LEDs off except “lamp test” is asserted. Show the truth table, simplified AND-OR
logic diagram, and seven-segment display of each character.
A= B= C= D= E= F=
(5) Draw the logic diagram for a 8-to-3 encoder using just three 4-input NAND gates.
What are the active levels of the inputs and outputs in your design?
(6) A customized priority encoder is defined in the table below; show the simplified
NAND-NAND circuit corresponding to such priority encoder.
Inputs Outputs
EN RI2 RI1 RI0 Y1 Y0 RO
0 X X X 0 0 0
1 1 X X 1 0 1
1 0 1 X 0 1 1
1 0 0 1 1 1 1
1 0 0 0 0 0 0
(7) Write the minimal sum expression of 8-to-1 multiplexer with one enable input EN,
eight data inputs D7-D0, three selecting inputs S2-S0, and one output Y. (all inputs
and outputs are active-high.)
(9) Show how to build each of the following logic functions using 4-to-1 multiplexer
and additional gates.
(a) F = ΣX,Y,Z(2,4,7)
YZ X Minterm F D
00 0 0 0 X
1 4 1
01 0 1 0 0
1 5 0
10 0 2 1 X′
1 6 0
11 0 3 0 X
1 7 1
(b) F= ∏A,B,C(3,4,5,6,7)
BC A Minterm F D
00 0 0 0 A
1 4 1
01 0 1 0 A
1 5 1
10 0 2 0 A
1 6 1
11 0 3 1 1
1 7 1
(c) F = ΣA,B,C,D(2,4,6,14)
CD AB Minterm F D
00 00 0 0 A′·B
01 4 1
10 8 0
11 12 0
01 00 1 0 0
01 5 0
10 9 0
11 13 0
10 00 2 1 A′+B
01 6 1
10 10 0
11 14 1
11 00 3 0 0
01 7 0
10 11 0
11 15 0
CD AB Minterm F D
00 00 0 1 A′·B′ +
01 4 0 A·B
10 8 0 =(A⊕B)′
11 12 1
01 00 1 0 A′·B +
01 5 1 A·B′
10 9 1 =A⊕B
11 13 0
10 00 2 0 A′·B +
01 6 1 A·B′
10 10 1 =A⊕B
11 14 0
11 00 3 1 A′·B′ +
01 7 0 A·B
10 11 0 =(A⊕B)′
11 15 1
(10) Implement 1-to-8 demultiplexer which all pins are active-high; using only one
74x139 IC and additional gates, show the logic diagram in bubble-to-bubble logic
design form.
Y2
3
a3 B Y2
b3
7
B Y3
Y3
b4
8
Y4
C
Y5
1/2 74x139
1
a1
G Y0
b1
5 Y6
2
a2
A Y1
b2
6
Y7
3
a3 B Y2
b3
7
Y3
b4
8