Combinational Circuit Design Guide
Combinational Circuit Design Guide
Digital Electronics
3-27
Carry Implementation
Do D D2 D
1 Do
1D
1 D2
Logic 1 1 Da 1 Y
Carry
A A 1 |2 Do Quadruple Sum
2Y
Sum 2 D1 2:1
MUX
D D 2 D2
D2 Da 2 Da
EN
2 EN
B
A A AA
B in
Fig. 3.10.17
Ex. 3.10.15 Realize F(w, x, y, z) = (1, 4, 6, 7, 8, 9, 10, 11, 15) using 4 to 1 MUX. AU : May-04, Marks 8
Sol.
D D3
Wx
Wx 5
Wx
Wx 13 14
D wx+wX D=WX+WX =
w x
D2 = Wx+w
D3= W x+wX+Wx
xD D 4:1 F
D, MUX
= w© x = X+W X
W+X
D
Fig. 3.10.18
Ex. 3.10.16 Implement the function with a multiplexer.
HA, B, C, D) =
2 0,1,3,4,8,9,15) AU: Dec.-08, 14, Marks 6
3 -28
Implementation
ABC
Logic 1
Fig. 3.10.21
Logic 1 D
D
2
D 8:1 161 F
MUX MU
Ds 10
D6 11
12
D- 13
14
15
x. 3.10.18 A B C
:1
Implement
multiplexer.
the given Boolean function
using
"A, B, C) = 21, 3, 5, 6)
Fig. 3.10.22
wwww
An up thrust for
knowledge
Combinational Circuit Design
Digital Electronics 3 29
Roview Questions
ICnumber Function Yo
74150 16:1 multiplexer
Y2
8:1 multiplexer Data inpu
74151
Fig. 3.11.1
TECHNICAL PUBLICATIONS- An up thrust for knowledge
Combinational Circuit n
30
Digital
- Electronics
line, 2" output ii
he the block diagram of a demultiplexer. It has
one input data
put lines;
Fig. 3.11.1 shows
n select lines and one enable input.
to all
path inputs.
has a
1:8 demultiplexer. The single input data D
select
3.11.3
3.11.3 shows
s ho the
ie. on
Fig.
information is rected to only one of depending
the output lines
The
t h ei n p u ti n f o
S2 So
ES,3,S Dn Yo
Din
ES SS DnY2
Data Din
input
ES,S,Sp DinY
1:8 Y3 ES,S Din.Y4
DEMUX Y4
E
Es3S0 DnYs
Enable
ESSS DnYs
So S,S
ESSS Din,Y7
Select inputs
Enable o
(a) Block schematic (b) Loglc diagram
E SYY%%YYsYY
0 0 0
0 x x x |o o 0 0 0
0 0 0 0 o 0 ES, S,S, Dn
0 0 o Dn 0
0 1 0 Din
o 0 0 ES S, 5% Dn
1 01 0 0 o P 0 0 0 o o E
Sy S,$% Pin
o o 0 D 0 0 0 o ES, s, S, D
1 |0 11 www
o 0 o 0 D 0 0 0 ES S, 5 D.
1 1 o
01 o
0 0 0
o ES S 5, Din
1 1
11 1 o 0 0
0 0 0
ES,SS%Din
1 1 1 1 00 o 0010 Dn Es, s, S D
(c) Function table
ww.-n.
Digital Electronics
Sol. Din
So
3
Yo
D Y2
Y
Y4
- Ys
D
Ya
D-
Y10
D Y11
D-Y
D Y13
TTTTTTI
- Y15
Fig. 3.11.4 1 to 16
3.11.2 Expanding Demultiplexers Demultiplexer
To provide larger
output needs we can cascade two or more
more number of output lines. Such a demultiplexer to get demultiplexe with
connection is known as
demultiplexer tree.
T TECHNICAL PUBLICATIONS- An up thrust for
knowledge
Combinational Circuit Design
Oo
-O
Pin 1:4
Demux 2 Y2 O2
Yo
1:4 Os
Din Demux 3 Y2
Yo Po
1:4
Din Demux 1 Y2
-O
in 1:4
Demux 4 Y2-O10
-O1
O12
Pin 1:4
-
O13
Demux 5 Y O14
O15
S So
needs 4 (::
the circuit With D required mi
of the 16 output,
lines. Each 1 : 4
demultiplexer requires 2 select
lines.
the output
can
so by
implement
logically ORing
Boolean functions mintermy
for
lines (S, we
implementat
Step 1:Connect two least significant select
demultiplexer.
subtractor. Fig. 3.11.7
shows the
tation
4: 1
lines of four s u b t r a c t o r using
demultiplexer.
So)toselect full
more 4:1
demultiplexer such
Step 2: Connect one to the data
are routed
that its four outputs
Connect o
four demultiplexers.
inputs of the
to the select lines
higher select lines (S S2) -D
of this demultiplexer. 2
1:8
Examples for Practice Din- 1 DEMUX
demultiplexer.
Ex. 3.11.5 Draw 1 : 64 demultiplexer tree using 1: 8
So S S2
demultiplexe.
A B C
3.11.3 Implementation of Combinational Logic
using Demultiplexer
Ex. 3.11.6 Fig. 3.11.7 Full subtractor using 1 8 demultiplexer
Implement full subtractor using demultiplexer.
Ex. 3.11.7 Implement the
AU Dec.-09, Marks 10 following functions using
Sol. demultiplexer:
(A, B,C) -2 m(0, 3, 7)
Step 1 Write the truth table of full
subtractor. S2 (A,B,C) 2 m(1, 2, 5)
Step 2 Represent output of full-subtractors in Sol.
minterm form.
B (A, B, C) =m (0, 3, 7)
in
0 (A, B, C) m(1, 2, 5)
1
Implementation using 1:8 demultiplexer.
DIn 1 1:8
DEMUX
1
Table 3.11.1 Truth
For full
subtractor
table of full
subtractor D
difference D function
written as D =f(A, B,
C) m
can be
unction can be (1, 2, 4, 7) and
Bout
written as, AB C
Bout F (A, B, C)
- 2 m(1,2,3, 7) Fig. 3.11.8
T
TECHNICAL. PUBLICATIOA"
Combinational Circuit Design
Digital Electronics
3 35
Examples for Practice
Inputs
Ex. 3.11.8
Implement full adder using
demultiplexer. 8
Ex. 3.11.9
Implement the following functions
using
demultiplexer
(A, B, C) = m (1, 5, 7) n-bit
z (A, B, C) = 2m (3, 6, 7) comparator
4 It can be used to
implement Boolean expressions.
Ex. 3.12.1 Design 2-bit comparator using gates.
3.11.5 Demultiplexer ICs Sol.
0 0
Review Questions
1. Define demultiplexer. AU:May-04, Marks 2
demultiplexer.
3. State the applications of demiltiplexer.
4. Design and explain 1 of 8 demultiplexer
1
AU:Dec.-16, Marks 8
1 0 1
A B A<B
A>B
AA B,B 01 11 10 AA
B,Bo 01 11 10 AA 0 01 1110
oo 00 o o 0o
01 01 01
11
10
10 oO
A>B
AB,Bo +AB,+ AAp5o
Fig. 3.12.2
(A B)
AA B, +AA B,B, AA B,B AAo B,Bo + +
(A B) (A, ©
B,)
(A B) AA, B, +A B,B+AB
Logic diagram
B Bo
A>B
D
A=B
D
A<B
T
Fig. 3.12.3
TECHNICAL PUBLICATIONS"- An up thrust for
knowledge
"8 VUstC
astc 8ates,
gates.
12.2
PO
: Consider t w one bit number A and B. The
truth table is as shown.
Inputs Outputs
A
B YA-B YA>B AB
0 0 1 0 0
0 0 0 1
10 0 0
1 1 1 0 0
B
A BO B A -YA>B
o -YA= B
0
YA=BAB+AB
= AB
YAB AB YAB AB
B
D- YAB
AOB
(a) k-map simplification (b) Logic diagram
Fig. 3.12.4
3.12.3 Design a 5-bit magnitude comparator using comparator IC 7485 AU : May-08, Marks 8
Truth Table
deononooenee
Bo I(A>B) IA B) I(A B
0 0 0
0
0 0
0
3-38
Desi
Input B
Digital Electronics Input A
Implementation
A1
B4 B3 B2 B
As Ag Az
IA B)
4-bit comparator
Bo I(A = B)
(7485)
B) A AB A<B
A
A Bo
Output
Fig. 3.12.55
AU : May-12
3.12.1 4-bit Magnitude Comparator
Ag
A2 D
DDAL
A
(A<B)
B- X
D
Ap
D
Bo (A B)
D
(A B)
Fig. 3.12.6 4-bit
comparator
TECHNICAL
PUBLICATIONS- An up thrust for
knowledge
Combinational Circuit Design
Digital Electronics
3- 39 so that the
comparator,
word
Consider two binary numbers, A and B with four 4. Design a
4-bit
outputs: A >B, A =B
i = 0, 1, 2, 3 AU: Dec.-14, Marks 12
for
with 3
4-bit magnitude comparator
where X = 1 only if the pair of bits in position i are 6. Design a
: A > B, A B, A < B.
=
(A B) =
x3 X2 X1 Xo 7. Describe the operation of 3-bit magnitude
To determine whether A is greater or less than B, we comparator. AU: Dec.-16, Marks 13
check the relative magnitudes of pairs of significant
digits, starting from the most significant position. If 3.13 Decoder AU:Dec.-06, 13,17, May-07
the two digits of a pair are equal, we compare the
A decoder is a multiple-input, multiple-output logic
next lower significant pair of digits. The
comparison circuit which converts coded inputs into coded
continues until a pair of unequal digits is reached. If
and codes
corresponding digit of A is 0 and that of B is 1, we outputs, where the input output are
D- A
C
D--Y,=AB
D- Y2=AB
Enable (EN)
- Y =AB -Y =
-Y, =ABc
Fig. 3.13.2 2 to 4
line decoder
The Table 3.13.1 -Y=
decoder. As shownshows the truth table
in the truth for a 2 to 4
is 1
(EN =1), one, and table, if enable -Y =
Ya is active for a only one, of the outputs input
active, i.e. Yo=1 whengiven input. The output Y is
to
-Y4 =ABT
Y, is active when inputs A =B =0, the Y
input is 0, i.e. EN
inputs A =
0 and B 1. If output -Y5 =ABC
=
0, then all the enable
outputs are 0.
Inputs Y =ABT
Outputs
EN BY,Y,|Y% Y7 ABC
o xxoo Enable (EN)
0
74X138 0
Y11)
1A
1Y (5)
1B 1Y26)
s (10) 1Y 7
(9)
(5) G2B (15)
Y (7) 2G
(14)2A 2Y12)
Inputs Outputs
Fig. 3.13.5 Logic symbol for IC 74X139
S2G2 clBa Ys o 3.13.4 Expanding Cascading Decoders
xx. 1 1 1 111
xx x11 Binary decoder circuits can be connected together to
X1xxxx1111111 form a larger decoder circuit. Fig. 3.13.6 shows the 4 x
Ex. 3.13.2 Design 5-to-32 decoder using one 2-to-4 and four 3-to-8 decoder ICs.
AU: Dec.-17, Marks 6
Sol.
74L3138(1
Yo
G
G2A
G3B
74LS138(2)
1/2 74LS139
EN 1Y
Y1 Y10
D -
A Y11
Y12
Y13
G2A
74LS138(3)
- 16
-Y17
18
19
Y20
Y21
GaA Y2
G28 Y23
74LS138(4)
-Y Y24
-Y25
26
27
EN 28
29
G2A 30
Fig. 3.13.7 5-to-32 G28 Y31
decoder using
74LS138 and 74LS139
TECHNICAL PUBLICATIONS"
An up thrust
-
for
knowledge
Combinauo
74LS139. The
half
3 43 and
7 4 L S 1 3 8 s
D and E.
D i g i t a lE l e c t r o n i c s
four
o r d e r inputs,
decoder 1sing higher lower
the of 5-to-32
construction
the t w o The three
3.13.7 shows
The Fig. 3.13. decode decoders.
d e c o d e r to
is used as a 2-to-4 3 to 8 the s a m e
s e c t i o n of 74LS139 IC of the four ns that mean
o n e is for 5-
5-to-32
order inputs signals
four 3-to-8 decoders is selected but only enable
output pin
each
of of the parallel
to
c o n s t r u c t
connected in
off
signals o four 3-to-8 decoder ICs are
decoder.
Decoder or multiple
zation of Boolean Function using single
to implement
3.13.5 Realizat
be used active low or
can either
The combination
of decoder and external logic gates
two output
states;
runcuOn.
of the
output
functions. We know that decoder can have one
in the
implementation of binary
these output states
Let us see the significance of variables; 1e. t
acthve hign.
for input
minterms (product terms) or selectea
sum
output is active high, it
generates
When decoder have to take
function we
implement SOP
makes selected output logic 1. In such c a s e to
terms generated by decoder.
product
Sol 3:8
oder
3 D -F
Step 1 Connect function variables as e
inputs to the decoder.
EN
Logically OR the outputs
Step 2 minterms
correspond to present Fig. 3.13.8
to obtain the output.
output
Ex. 3.13.4 Implement the. following multiple
to 16 line decoder.
combinational logic using a 4 line
Inputs
4:16
Decoder D
Y10
Y11
Y12
Y13
EN Y14
Fig. 3.13.10
Ex. 3.13.6
Design and implement a full adder circuit **********
10
Table 3.13.5 Truth table
for full-adder
Ex. 3.13.7 Design excess-3
an to BCD code Fig. 3.13.11
converter using decoder
and gates.
T
TECHNICAL
PUBLICATIONS An up thrust
for knowiedna
CSS-S to
BCD
a l . : 1 h e
coc
e
converter is as shown
B2 in the Table 3.15.0.
10 Realization
0 11 0 0
10 0 0
1
Yo
0 1 0
0 0
Bo
Ya
0
Eg A Ys B1
0 Excess-3
COde
E2- Y6
E C
Y7 - B2
0 1 0 4:16
Eo D
Decoder
00 1 40
0 0
Yn
YA2
Y44
Table 3.13.6
Fig. 3.13.12
Examples for Practice
Ex. 3.13.8 Implement the following Boolean functions using decoder and OR
FiA,B,C,D) 2 (24,7,9)
=
gates:
F2 (A,B,CD) 2 (10,13,14,15)
=
Ex. 3.13.9 Implement the logic circuit for full subtractor using decoder.
3.13.6 Applications of Decoder
The uses of decoders are
Code converterIS