Chapter 4
Chapter 4
INTRODUCTION
oCombinational logic circuits are circuits in which the output at any time
depends upon the combination of input signals present at that instant only, and does
not depend on any past conditions.
oIn particular, the output of particular circuit does not depend upon any past
inputs or outputs i.e. the output signals of combinational circuits are not feedback to
the input of the circuit.
oMoreover, in a combinational circuit, for a change in the input, the output
appears immediately, except for the propagation delay through circuit gates.
ADDERS
oThe most common arithmetic operation in digital systems is the addition of
two binary digits.
oThe combinational circuit that performs this operation is classified as half-
adder and full adder
Half Adder
oIt has two inputs A and B. that are two 1-bit members, and two output sum (S)
and carry (C) produced by addition of two bits.
2. Truth Table
oThe sum output is 1 when any of inputs (A and B) is 1 and the carry output is 1
when both the inputs are 1.
3. Using a two variable k-map, separately for both outputs S and C.
4. Logical Implementation.
(i) Using Basic gates
2. Truth Table:
oThe eight possible combinations of three input variables with the irrespective
outputs are shown.
oWe observe that when all the three inputs are 1, the sum and carry both
outputs, are 1.
3. Using a three variable map for both outputs.
4. Logical Implementation.
(i) Using basic gates.
ii) A ‘Full Adder’ can also be implemented using two half adders
and an ‘OR’ Gate
Block Diagram representation of a full adder using two half address:
S1 and C1 are outputs of first half adder (HA1)
MAGNITUDE COMPARATOR
oA magnitude comparator is a combinational circuit designed primarily to
compare the relative magnitude of the two binary numbers A and B.
o Naturally, the result of this comparisons specified by three binary variables that
indicate, whether A > B, A = B or A < B.
The block diagram of a single bit magnitude comparator is shown in Fig. 1.
Fig. 2(a) shows an EX-NOR gate with two inputs A and B. If A = B then the output of
Ex-NOR gate is equal to 1 otherwise 0.
Fig. 2(a)
oFig. 2(b) and (c) shows AND gates, one with A and B' as inputs and another
with A'and B as their inputs.
thing AND’d with 0 is 0) whilst the output from the other AND gate will be
A`.D0 = 1.D0 =D0.
Demultiplexers provide the reverse operation of multiplexers since they allow a single
input to be routed to one of n outputs, selected via m control lines (n=2 m).
This circuit element is usually referred to as a 1-of-n demultiplexer.
The circuit basically consists of n AND gates, one for each of the 2 m possible combinations
of the m control inputs, with the single line input fed to all of these gates. Since only one
AND gate will ever be active this determines which output the input is fed to.
The block, and circuit, diagram of a 1-of-4 demultiplexer is shown in fig.
Fig. The block and circuit diagrams of a 1-of-4 demultiplexer
Encoders
An encoder is a multiplexer without its single output line.
It is a combinational logic function that has2n(or fewer) input lines and n output lines,
which correspond to n selection lines in a multiplexer.
Then output lines generate the binary code for the possible 2 ninput lines.
Let us take the case of an octal-to-binary encoder. Such an encoder would have eight
input lines, each representing an octal digit, and three output lines representing the
three-bit binary equivalent.
The truth table of such an encoder is given in Table. In the truth table, D 0 to D7 represent
octal digits 0 to 7. A, B and C represent the binary digits.
Table: Truth table of an encoder
The eight input lines would have 28= 256 possible combinations. However, in the case of
anoctal-to-binary encoder, only eight of these 256 combinations would have any
meaning.
The remainingc ombinations of input variables are ‘don’t care’ input combinations. Also,
only one of the input lines at a time is in logic ‘1’ state. Figure shows the hardware
implementation of the
octal-to-binaryencoder described by the truth table in Table. This circuit has the shortcoming
that it produces anall 0s output sequence when all input lines are in logic ‘0’ state. This can be
overcome by having aadditional line to indicate an all 0s input sequence.