Combinational Circuits
Combinational Circuits
Example : Design a combinational logic circuit with three inputs , the output is at logic 1
when more than one inputs are at logic 1.
Solution: Assume A, B, C are inputs and Y is output .
2.2 Adder
The Basic operation in digital computer is binary addition. The circuit which
perform the addition of binary bits are called as Adder.
The logic circuit which perform the addition of two bit is called Half adder and three bit
is called Full adder.
Rules for two bit addition
0+0=0
0+1=1
1+0=1
1 + 1 = 102
Logic Diagram
2.3 Subtractor
Subtractor is the logic circuit which is used to subtract two binary number (digit)
and provides Difference and Borrow as a output. In digital electronics we have two
types of subtractor, Half Subtractor and Full Subtractor.
Logic Diagram
2.3.2 Full Subtractor
A logic Circuit Which is used for Subtracting Three Single bit Binary digit is
known as Full Subtractor.The inputs are A,B, Bin and the outputs are D and Bout.
Truth table K-map for D and Bout
Inputs Outputs
A B Bin D Bout
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0 Logic Diagram
1 1 0 0 0
1 1 1 1 1
In practical situations it is required to add two data each containing more than
one bit. Two binary numbers each of n bits can be added by means of a full adder
circuit. Consider the example that two 4-bit binary numbers B 4B 3B 2B 1 and A 4A 3A 2A
1 are to be added with a carry input C 1. This can be done by cascading four full adder
circuits. The least significant bits A 1, B 1, and C 1 are added to the produce sum output
S1 and carry output C 2. Carry output C 2 is then added to the next significant bits A2 and
B2 producing sum output S 2 and carry output C 3. C 3 is then added to A3 and B3 and so
on. Thus finally producing the four-bit sum output S 4S 3S 2S 1 and final carry output
Cout.
2.4.2 Four Bit Parallel Binary Subtractor
We can design a four bit parallel subtractor by connecting three full subtractors and one
half subtractor. In the figure A = A3 A2 A1 A0 is minuend B = B3 B2 B1 B0 is subtrahend
giving the difference D = D3 D2 D1 D0.
The subtraction operation can be performed using 1’s and 2’s complement addition, so
we can design Full subtractor using Full Adder.
The Boolean function for the carry output of each stage can be
From the above functions it can be seen that C 4 does not have to wait for C3 and
C2. All the carries are propagating at the same time.
Logic Diagram
2 to 4 Decoder with Enable input
Truth Table
Logic Diagram
3 to 8 Decoder
It has 3 inputs and 23 = 8 outputs.
Logic Diagram
2.7 Encoders
Encoders is a combinational circuit which takes 2N inputs and gives out N outputs, the
enable pin should be kept 1 for enabling the circuit.
4 to 2 Encoder
It has 22 inputs and 2 outputs.
Truth Table
A Priority Encoder works opposite of the decoder circuit. If more than one input is
active, the higher order input has priority.
4 to 2 Priority Encoders
D0-D3 - inputs
A1,A0 – outputs
K-map simplification
Logic Diagram
3 to 8 Priority Encoder
Multiplexer is a combinational circuit that selects binary information from one of many
inputs and directs it into single output.
Mutliplexer has 2n inputs, n select line (control input) and one output
It also called as Data selector
2 to 1 Multiplexer
Circuit diagram
4 to 1 MUX
Each minterm of the function can be mapped to a data input of the multiplexer.
For each row in the truth table, where the output is 1, set the corresponding data input
of the mux to 1.Set the remaining inputs of the mux to 0.
F(x,y,z) = Σm(1, 2, 6, 7)
Truth Table
Multiplexer Implementation
Example 2: Implement the following Boolean function using 8:1 MUX
1-to-2 demultiplexer
has 22 outputs , 2 select lines, one input.
Logic diagram
1-to-4 Demultiplexer
1-to-8 Demultiplexer
3-select lines
8-outputs
In the above figure, the highest significant bit A of the selection inputs are connected to
the enable inputs such that it is complemented before connecting to one DEMUX and to
the other it is directly connected.By this configuration, when A is set to zero, one of the
output lines from Y0 to Y3 is selected based on the combination of select lines B and C.
Similarly, when A is set to one, based on the select lines one of the output lines from Y4
to Y7 will be selected.