Combinational Circuits
Combinational Circuits
Introduction
Combinational circuit consists of input variables, logic gates and output variables. The inputs and outputs are two
valued, i.e., 0 or 1.
The values of the output variables depend only on the present values of the input variables. The output does not
depend on the previous history of the inputs. In fact, an ideal combinational circuit acts instantly depending on the
input at that instant.
Circuits like adder, subtractor, multiplexers, demultiplexers, decoders, encoders are all examples of combinational
circuits
HALF ADDER
The half adder operation needs two binary inputs: augend and addend bits and two binary outputs: Sum and Carry
Limitations:
In multidigit addition, we have to add two bits along with the carry of previous digit addition.
Effectively, such addition of three bits is not possible with half adder.
Hence half adder is not used in practice.
Example: Draw half adder using NAND gates
FULL ADDER
There is a provision of generation and addition of carry bit in full adder while in half adder two inputs are added
but there is no provision to add a carry to the next higher significant bit which is obtained from the previous stage.
A full adder consists of three inputs and two outputs. The three input terminals used for A (Augend bit), B(Added
bit) and Cin represents the carry from the previous lower significant stage. The two output terminals produce a
sum and a carry.
Example: Full adder using two half adder
HALF SUBTRACTOR
A half subtractor is combinational circuit which subtracts two bits and produces their difference D and borrow out
(Bout).
A full adder consists of three inputs and two outputs. The three input terminals used for A (minuend), B
(subtrahend) and Bin (previous borrow). The two output terminals are D (difference), Bout (output borrow) .
Further simplification
Full subtractor circuit
Borrow output
A digital multiplexer (MUX) selects digital information from various input lines and transmits the selected
information to a single output. The selection of particular input line is controlled by a set of selection lines.
Generally, there are 2𝑛 input lines and n selection lines whose bit combination decides which input is to be
selected. The block diagram of a multiplexer with m (= 2𝑛 ) input lines, n selection lines and one output is shown:
Four to one multiplexer
The four inputs 𝐼𝑜 to 𝐼3 , a single output Y, and two selection lines 𝑆𝑜 and 𝑆1 are used to select one output of four
input lines. The logical expression for output Y in terms of input lines (𝐼𝑜 to 𝐼3 ) and the selection inputs (𝑆𝑜 and
𝑆1 ) can be obtained as follows:
For other three AND gates, the output will be equal to 0 because at least one input will have zero value in
all the three AND gates. Hence the OR output is equal to the value of 𝐼0 .
Eight to one multiplexer
An eight to one multiplexer is same as four to one multiplexer. It has eight inputs, three selection lines and one
output.:
𝑌 = 𝐼0 𝑆2 𝑆ഥ1 𝑆0 +𝐼1 𝑆2 𝑆ഥ1 𝑆0 +𝐼2 𝑆2 𝑆1 𝑆0 +𝐼3 𝑆2 𝑆1 𝑆0 +𝐼4 𝑆2 𝑆ഥ1 𝑆0 +𝐼5 𝑆2 𝑆ഥ1 𝑆0 +𝐼6 𝑆2 𝑆1 𝑆0 +𝐼7 𝑆2 𝑆1 𝑆0
Multiplexer with an Enable input
Normally multiplexers have one additional input line that is referred to as enable input which controls the whole
multiplexer circuit operation and provides greater flexibility.
This enable input is also called strobe. Enable line may be active low or active high.
Active low means 𝐸 = 0 and active high means 𝐸 = 1. The four to one multiplexer is shown in fig. with enable
input 𝐸 = 1, i.e., active high. Therefore, output Y can be obtained only when E = 1.
Multiplexer with an Enable input
When 𝐸 = 0 then multiplexer is disabled but if 𝐸 = 1, then the multiplexer works normally. The logic expression
for a four to one multiplexer with an enable input can be immediately written as,
By interconnecting several multiplexer in a treelink structure, it is possible to produce a large line multiplexer.
Figure demonstrates how four 4-1 line multiplexers are used to construct a 16-1 line multiplexer. Similarly, a 32 to 1
multiplexer can be constructed by using two 16-1 multiplexers or four 8-1 multiplexers or by using eight 4-1 multiplexers.
DEMULTIPLEXER
Demultiplex means 'one into many'. It performs the opposite of multiplexer. It accepts one input and transmits it
over many output lines.
The selection lines decide to which output, the data input will be transmitted. If it has 𝑚 output lines and 𝑛 select
lines, then the relationship between 𝑚 and 𝑛 is as follows
𝟐𝒏 = 𝒎
The block diagram of 1: 𝑚 demux is shown. It has one input line, 𝑛 select lines and 𝑚 output lines. It converts the
serial data into parallel data, so demultiplexer is also called a data distributor or serial to parallel converter
𝟏: 𝟒 Demuliplexer
It has one input line 𝐷 and two select lines 𝑆 and 𝑆𝑜 . So, the output lines will be (2𝑛 = 22 = 4) four, i.e., 𝑌𝑜 , 𝑌1 , 𝑌2 , and 𝑌3 .
The truth table of 1: 4 Demux is as follows:
Operation:
If we consider the case when the select line inputs 𝑆1 𝑆0 = 00 is applied, then the data information in
transferred to 𝑌𝑜 output line. If input D is applied, the output at 𝑌𝑜 line will be D and other outputs will be 0.
Similarly, when the other combinations are applied to select lines, the corresponding output line will select
and data is transferred to the selected output line.
𝑌0 = 𝑆ഥ1 𝑆0 𝐷, 𝑌1 = 𝑆ഥ1 𝑆0 𝐷, 𝑌2 = 𝑆1 𝑆0 𝐷, 𝑌3 = 𝑆1 𝑆0 𝐷
𝟏: 𝟖 Demuliplexer
It has one input data line 𝐷 and three select lines (𝑛 = 3) . So, the output lines will be (2𝑛 = 23 = 8) four, i.e., 𝑌𝑜 , 𝑌1 , 𝑌2 ,
𝑌3 , 𝑌4 , 𝑌5 , 𝑌6 and 𝑌7 . The truth table of 1: 8 Demux is as follows:
DECODER
Sometimes digital information represented in binary form must be converted into some other form. This is obtained
by multiple inputs-multiple outputs logic circuit known as decoder.
The most commonly used decoder is 𝑛 to 2𝑛 line decoder. The block diagram of (𝑛: 𝑚) decoder is shown. It has 𝑛
input lines and 𝑚 (= 2𝑛 ) output lines.
In a decoder, 𝑚 output lines are greater than 𝑛 input lines. But when input lines are equal to output lines then it is
known as a converter. It converts one form of n bit binary information into another form of m bit binary information.
For example, BCD to excess-3 code converter, binary to gray code converter etc.
In other case when m output lines are less than 2" then this type of decoder is known as function specific decoder.
For example, BCD to decimal decoder, BCD to seven segment decoder etc.
The main applications of decoder are data demultiplexing, digital display, digital to analog converters and memory
addressing.
𝟑 𝒕𝒐 𝟖 Decoder
It has three input lines, i.e., 𝑛 = 3(𝐴, 𝐵, 𝐶) and input lines and 𝑚 = 23 = 8 output lines, i.e., 𝑌𝑜 , 𝑌1 , 𝑌2 , 𝑌3 … … 𝑌7 .
Each expression on output line corresponds to a single minterm.
For example, when input ABC = 000 is applied, the output line 𝑌𝑜 will get enabled. It means the output line 𝑌𝑜 will give
logic 1 and output of other lines will be zero. So minterm ABC, i.e., ABC=000 is obtained at output line 𝑌𝑜 . The truth table
of 3-to-8-line decoder:
Generally, decoders have one or more additional input lines, which control the operation of the decoder, called enable
input E. The block diagram of 2: 4 line decoder with enable input is shown in fig. 4.37
If enable input is zero i.e. E = 0 then the decoder will be disabled. Then all the outputs of decoder will be zero. The output
will not depend on the inputs A and B.
When E = 1 is applied then decoder will get enabled and the output line will give output 1 by applying corresponding
input combination to the input lines A and B
BCD to Seven Segment Decoder
The seven segment display is used to display the decimal digits from 0 to 9.
The BCD to seven segment decoder accepts BCD inputs and displays the corresponding decimal digit.
The seven segment display is composed of seven elements or segment. Each segment is a small light emitting diode (LED),
which glows when electrical current passes through it.
As shown in fig. (b) the segments are labelled from a to g.
Its gives information in more compact form. Encoder has more input lines than output lines or say output lines are less
than the input lines. It has m input lines and n output lines.
From m input lines, only one is activated at a time and gives an equivalent code on n output lines.
Encoder is a digital or combinational circuit that converts an active signal into a coded output signal. Encoders are used
to reduce the number of bits needed to represent the given information.
A practical use of encoders is for transmitting information in a digital system. Encoding is also useful the if the
information is to be stored for later use because fewer bits are required to be stored.
Octal to Binary Encoder
Encoder is the inverse of decoder. We also studied the 3: 8 decoder where it accept a 3-bit input code and activates one of
the eight output lines respective to that code.