Combinational Logic Circuit
Combinational Logic Circuit
—D, |
L5—p; |
|
FIGURE 6.16 (BLOCK DIAGRAM) iey ; rable for 2.x 4 decoder is shown in table 6.6
fe
Inputs
A
0
0
1
1
TABLE 6.6
From the Truth Table, the boolean expressit
lachae pression for the outputs D,, D,, D, and D, can
D,=A.B
D, =A.B
D3 =A.B
The logic di
gic diagram from 2 x 4 decoder is shown in figure 6.17
FIGURE 6.17
[153]is ji i i id more than on
- Itis sometimes convenient to include one ant 1 © enable
decoder to control the circuit operation. All output will be equal to Oifthe
is 0. When the enable input is 1, then circuit operates ;
diagram of a 2x4 decoder with enable input is shown in fi
aS a decog, ek
igure 6.18. That
A—> a
2-4 A,
decoder
rs A
3s— > |
po 4, |
=— |
(enable) E |
FIGURE 6.18
6.8.2 3 x 8 decoder
Similary, for n = 3, the decorder will have 2° = 8 outputs. For n = 4, the decoders
have maximum 2¢ = 16 outputs.
Block diagram of 3x 8 decoder is shown in figure 6.19
FIGURE 6.19 Fi
The Truth Table for 3 x 8 decoder is shown in Table 6.6 I"a
OUTPUTS
se c | D [D2 D, D, | 0, «| 0,
sto yt f° 0 0 Ogi=a0; |= ocho
‘i i ol4 0 0 0 0 Oo lo
_ o | o 1 0 0} olf olo t
+ | 4 0, 21.0 0 1 ol of} ojo |
o}|o|ol|fo jo 0 1] 0 | o]}o i
0 1 o |o 0 0 0 1 o |o |
il 0 0 0 0 oO oO 0 il 0
1 id 0 O Oo 0 0 0 0 1 \
TABLE 6.6 '
The logic diagram for 3 x 8 decoder is shown in fig 6.20 |
{| |
| B: 1 =AeBeC |
!
}
D,=AeBeC
D, =AeBeC
|
D, =AeBeG
|
_ Dy=AeBeC
D,=AeBeC
D, =AeBeC
Se ee
FIGURE 6.20 155]i ders
6.8.3 4 x 16 decoder with 3 x'8 deco
46 decoder with 3 x 8 ae For this, we need two 3, 4
We can pote input as shown in figure 6.
decoder at
si
FIGURE 6.21
decode!
When D=0, the top decoder is enabled and the other is disabled. The eat ottth
Output are alll 0's and the top decoder provides Outputs from D, to D, (0
When D=1, the enable Conditi
jecoder™
ions are Teversed, the outputs of the ton 4114):
all 0's and the bottom decoder Provides outputs from D, to D,, (1000
6.8.4 5 x 32 decoder with 3x8 decoders
able in
To design 5 x 32 decoder, we Need four 3 x g decoders and two @! |
Figure 6.22 shows the 5 x 32 decoder with 3 x 8 decoders.
(f3-8 4, 10 A,
decoder #—>—__
3:8 A, 1A,
decoder -—>———
[ror
8 Ay, TO
decoder sy 4a
))
or JT
-——_——
Poe Lae
| le || ey pt
i) ---—
[oer
pues Saree
FIGURE 6.22
7 [157]A, B, C are the three inputs of 3x8 decoder and Dand E are two ¢
When E = 0 and D = 0 then the top decoder provide outputs from D, top,
00111) and other are disabled. When E = 0 and D =1, then the (doen
Provide outputs from D, to D,, (01000 to 01111) an
E =1 and D =0 then only decoder number III Provide
to 10111). Lastly, when E = 1 and D = 1 then the dec.
from D,, to D,, (11000 to 11111).
id others are qj
outputs from, Oo,
oder number ly Provi
Pat
6.8.5 BCD to decimal decoders
BCD to decimal decode:
fs consist of 4 input lines and 10 Output lines as .
Truth Table 6.7 a
INPUTS OUTPUTS
By |e ete: pores oe ele
5 | 96
oO oO oO ot clot
9}0}0}oTo]o]o
|
TABLE 6.7 iei 1S SNOWN IN NQUIe O.c5
F000 to decimal decoders wu
n
gag
eee
5 =
; 1) = AeBeCeD
"
0
= AeBeCeD
[ 159)6.9 Encoders
Anencoder is a combinational logic circult that performs an Peration y,
to that of a decoder. Very
Therefore, an encoder will have 2" or less input lines and n Output lines,
For example, the octal to binary encoders consist of 8 i
the eight digits, and three outputs lines that generate
number. The truth table for octal to binary encodes is sh
input lines, ong for e;
the corresponding 14
own in Table ea” bi
INPUTS OUTPUTS
2 A ee D, [A] BTS
ne eB ee oo Popes
ce ee eer ott
ojo [i Toto fo fetes Tho
Es i )o 0 0 0 ofaly
: 7 2 0 [ea 0 0 0 1 0 fo
ey Ooi om |Gola| GEeleolao jad 0}
eee Pope pe pe te
o |°fo fo [eo 7 ey eae
TABLE 6.8
Logic diagram of octal to binary encoder is shown in figure 6.24
A=D, +D,+D.+
D
D,
Dy A
6 B=D,+D,+0e*"
‘S
Ds
0:
=D, #05495"
D,it i der is constructed with OR gat
: 24, it is clear that enco gates whose
omit fg termined from the truth table 6.8.
inp! as column of output C from truth table 6.8, then we find that Output bit C is
t!
we re octal digits D,, Ds, Dg and D, . Therefore
{or
C=D,+D,+D,+D,
=D,+D, +D, +D.
similarly A=D, +D, +Dg+D,
B=D,+D,+D,+D,
Note that D, is not connected to any OR gate, because the binary output must be all
(sin this case and that is not possible. ;
‘The encoder shown in figure 6.24 assumes that only one input line can be equal to
tatany time. Otherwise, 8 inputs can have 28= 266 combinations and the Circuit
wilhave no meaning. Only 8 of these combinations as shown in table 6.8 have any
meaning and the remaining input combinations are don't care conditions.
41 Decimal to BCD Encoders
The decimal to BCD encoders consist of 10 input lines and 4 output lines as shown
inttuth table 6.9
INPUTS OUTPUTS
2 [p, D,|D,)D,|D,|D,)D,|A |B }|c|D
[o | 0 ololo|lofo
0 ofolo]o}1
0 rofolol+lo]
0 o| IE 1
0 ofoli|o lo
9 | |0 fo [o|1 - :
ojoj1 o}o}o|t
lo | ololo ofofo[1|tI*
[o fo bolo 0 ava Oa le o fete
o |ololo 0 [0 1 [1 fopot 3
TABLE 6.9 [161]i tl
From the truth table, the boolean expression for the outputs ABo andy.)
written as 5
= D,+D, i
= D,+0,+D,+D,
D, +D, +D, + D,
= D,+D,+D,+D,+D,
ooo0 >
"
Logic diagram of decimal to BCD encoder is shown in figure 6.26
rr
Dy D, D, Ds Dy Ds Dy Dy Dg Dy
e
B=D, +D, +D,+0;
=D, +D,+Di*
“FIGURE 6.26 ("ee
* er
ywaltiplex combinational circuit that accept input from 2" lines and
a
rears a single output line.
the 0!
articular input line is controlled by a set of selection lines.
oseation ae 2 input lines and n selection lines whose bit combination
there are
cereal. rich input is selected.
ine, which inpt ae
a of 4 to 1 line multiplexer is shown in figure 6.26
Bloc
|, ——>
|, —— 4:1 y
——» Mux
| —4|
Ss |S,
FIGURE 6.26
we fer sy ls, ate the 4 inputs, Y is the one output and S,. S, are the two
lines,
mectonal le ot 4:1 uliploxer is given in table 6.10. The function table lists
Putto-output Path for each possible bit combination of the selection lines.
From TABLE 6.10
le
3.8 0, the Output Y can be expressed as
0S =
4 o+1.S,.8, 41,88, +1,8,.S,
[163]
bhic diagram of 4 : 1 multiplexer is shown in figure 6.27
The logic :
a ee ee
sb
FIGURE 6.27
Similarly 8 : 1 and 16:
1 multiplexers can be designed. Block diagram of t
shown in Figure 6.28.
1
in
L
\
Is 8:1
i Mux Y
1,
SS Ss
FIGURE 6.28
One does not Tequire to simplify logic expression.
The IC Package cost is less,
Logic design is simple
Changes in. design can be easily done.) jtiplexer
UX) is the OPP
ie i asing!
hows & block diagram of
is oy "4 demultiplexer
geo
‘osite of multiplexer inits operation. A demultiplexer
le input and distributes it over several outputs.
4:4 demultiplexer. Table 6.11 shows the truth
D, |
1:4 -?—D, |
: DMUX [>—D, |
t»—D, i
FIGURE 6.29
Select lines Outputs lines
s, | s, | D,]D,|p,|D,
0 0 1)/0];/0/]0
0 i o};1}/0]0
1 0 oj;o;1]o
pec eee eee eae |
ott
TABLE 6.11
The it
tyre lines are used to select an output on which the input data is present. The
Multiplexer is shown in figure 6.30.
FIGURE 6.30 [1651Note that the decoder can functions as a comics if the enable line ig)
a data input line and input lines are taken as the select fines, Because de Lae,
demultiplexer operations are obtains from the Same Circuit. So a decoder a
enable input is referred to as a decoder / demultiplexer. Wit
6.12 Comparators
A comparator is a combinational circuit that Performs the co,
4 e MParison, of
numbers and determines, which one number is greater than, equal 10, ore
than the other number.
Consider the two numbers A and B, each consisting of 1 bit. Then there are the
Possible outputs.
1. F,=1ifA=Bie. either both A and B are 0 or 1
2 F,=1ifA>Bie.A=1andB=0
3. F,=1ifA