Unit 3 Combinational Circuits
Unit 3 Combinational Circuits
X1 Y1
X2 Y2
Combinational
n number X3 Circuit Y3 m number
of inputs X4 Y4 of outputs
(Logic Gates)
….
….
Xn Ym
A B Sum Carry
A Sum 0 0 0 0
Half Truth 0 1 1 0
Adder Table
B Carry 1 0 1 0
1 1 0 1
A’ A’
K-map 0 1 K-map
0 0
(0) 0 1 (0) 0 1
for for
Sum A Carry A
1 0 0 1
(1) (1) 2 3
2 3
A
Sum
B
Carry
0 0 1 1 0
addition of 3 bits.
0 1 0 1 0
0 1 1 0 1
Truth
A Sum
Full Table 1 0 0 1 0
B Adder 1 0 1 0 1
C Carry
1 1 0 0 1
1 1 1 1 1
Sum = AB’C’+ABC+A’B’C+A’BC’
= A(B’C’+BC)+A’(B’C+BC’)
= A(BC)’+ A’(BC)
= ABC
Dr. Nilesh Patidar and Mr. Shiraz Husain 7
Full adder
BC B’C’ B’C BC BC’
A (00) (01) (11) (10)
K-map A’
0 0 1 0
for (0) 0 1 3 2
Carry A
0 1 1 1
(1) 4 5 7 6
Carry = AC + BC + AB
K-map A’
0 0 1 0
for (0) 0 1 3 2
Carry A
0 1 1 1
(1) 4 5 7 6
Carry = AB’C+A’BC+AB
= (AB’+A’B)C+AB
= (AB)C+AB
Dr. Nilesh Patidar and Mr. Shiraz Husain 9
Full adder
?
A
B Sum
Carry
C OR Carry
(AB).C +AB
Dr. Nilesh Patidar and Mr. Shiraz Husain 11
Half Subtractor
◼ Half Subtractor is used for subtraction of 2 bits.
Differe
A B Borrow
nce
A Difference 0 0 0 0
Half Truth 0 1 1 1
Subtractor Table
B Borrow 1 0 1 0
1 1 0 0
A’ A’
0 1 K-map
0 1
K-map (0) 0 1 (0) 0 1
for for
Differ A Borrow A
1 0 0 0
ence (1) (1) 2 3
2 3
A
Difference
B
Borrow
subtraction of 3 bits. 0 0 1 1 1
Truth 0 1 0 1 1
Table
0 1 1 0 1
A Full Difference
1 0 0 1 0
B Subtra-
ctor 1 0 1 0 0
C Borrow
1 1 0 0 0
1 1 1 1 1
Difference = AB’C’+ABC+A’B’C+A’BC’
= A(B’C’+BC)+A’(B’C+BC’)
= A(BC)’+ A’(BC)
= ABC
Dr. Nilesh Patidar and Mr. Shiraz Husain 16
Full subtractor
BC B’C’ B’C BC BC’
A (00) (01) (11) (10)
A’
K-map 0 1 1 1
(0) 0 1 3 2
for
Borrow A
0 0 1 0
(1) 4 5 7 6
Disadvantages
Circuit) output)
I(2n-1)
….
Sn-1 S1 S0
Y = S’I0 +SI1
Y = S’I0 +SI1
Dr. Nilesh Patidar and Mr. Shiraz Husain 29
4x1 Multiplexer
S1 S0 Y
I0 00 0 0 I0
I1 01 4x1
Y Function 0 1 I1
I2 10 MUX
Table
I3 11 1 0 I2
S1 S0 1 1 I3
Y = S1’S0Dr.
’I0Nilesh ’S0I1and
+ S1Patidar 0’I2 Husain
+ SMr.1SShiraz + S1S0I3 31
4x1 MUX using 2x1 MUX S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
i2
i0
i1
i3 1 1 I3
1
0 Y
S0=1
=0 S1=1
=0
Dr. Nilesh Patidar and Mr. Shiraz Husain 32
Dr. Nilesh Patidar and Mr. Shiraz Husain 33
Mux quantity as per design
De-Multiplexer Y1
1 x 2n Y2 2n number
Din of outputs
(only one (Combinational Y3
Circuit)
….
input)
Y(2n-1)
….
Sn-1 S1 S0 Symbolic
Representation
n select lines
Dr. Nilesh Patidar and Mr. Shiraz Husain 36
1x2 De-Multiplexer
S Din Y0 Y1
0 Y0 0 0 0 0
Din 1:2
De-MUX Truth 0 1 1 0
1 Y1 Table
1 0 0 0
S 1 1 0 1
S Y0 Y1
Function
0 Din 0 Y0 = S’Din
Table
1 0 Din Y1 = SDin
Dr. Nilesh Patidar and Mr. Shiraz Husain 37
1x2 De-Multiplexer
Y0 = S’Din
Y1 = SDin
00 Y0 0 0 Din 0 0 0
1x4 01 Y1
Din 0 1 0 Din 0 0
DeMUX 10 Y2 Function
Table 1 0 0 0 Din 0
11 Y3
1 1 0 0 0 Din
S1 S0
Y0= S1’S0’Din Y2= S1S0’Din
Y2= S1S0’Din
Y1= S1’S0Din
Y0= S1’S0’Din
Dr. Nilesh Patidar and Mr. Shiraz Husain 40
Multiplexer (as universal logic gate)
◼ Multiplexer is also act as universal logic gate.
◼ It means that any of the logic circuit/gate can be
implemented with the help of multiplexer.
S1 S0 S1 S0 Y 0 00
0 0 I0 1 01 4x1
F = A+B
Function
0 1 I1 1 10 MUX
Table
of MUX
1 11
1 0 I2
1 1 Dr.I3Nilesh Patidar and Mr. Shiraz Husain
A B 43
Implementation using mux (Method 1)
◼ F(A,B,C) = ∑m(1,3,5,6)
B C 3 0 1 1 0
4 1 0 0 1
Column I0 I1 I2 I3 S1 = B
5 1 0 1 1
A’ 0 1 2 3 S0 = C
A 4 5 6 7 6 1 1 0 0
1 A 0 A 7 1 1 1 1
Dr. Nilesh Patidar and Mr. Shiraz Husain 49
Question
◼ Implement the following function using 8:1 Mux
F(P,Q,R,S) = ∑m(0,1,3,4,8,9,15)
X1 Decoder Y1
N x 2N Y2
N number X2 2N number
of inputs Y3 of outputs
X3 (Combinational
….
Circuit)
….
XN-1 Y(2N-1)
E (enable)
….
Circuit)
….
X(2N-1) YN
0 0 0 1 1 1
Y0 = D1+D3
X X X X X X
Y1 = D2+D3
0 1 3 2
K-map for
Y0 of 4x2
Encoder 4 5 7 6
12 13 15 14
8 9 10 11
Y0 = D1+D3
Dr. Nilesh Patidar and Mr. Shiraz Husain 64
4x2 Encoder
D2D3
D0D1
0 1 3 2
K-map for
Y1 of 4x2
Encoder 4 5 7 6
12 13 15 14
8 9 10 11
Y1 = D2+D3
Dr. Nilesh Patidar and Mr. Shiraz Husain 65
4x2 Encoder
Y1 = D2+D3
Y0 = D1+D3
Y0 = D1+D3+D5+D7 0 0 0 0 0 1 0 0 1 0 1
Truth 0 0 0 0 0 0 1 0 1 1 0
Y1 = D2+D3+D6+D7 Table
Y2 = D4+D5+D6+D7 0 0 0 0 0 0 0 1 1 1 1
X X X X X X X X X X X
Dr. Nilesh Patidar and Mr. Shiraz Husain 67
8x3 Encoder (Octal to Binary)
Y2 = D4+D5+D6+D7
Y1 = D2+D3+D6+D7
Y0 = D1+D3+D5+D7
A Sum
Half
Adder
B Carry
0 0 0 0 0
Truth 1 0 1 1 0
Table of
Half adder 2 1 0 1 0
3 1 1 0 1
Sum = Ʃm(1,2)
Carry = Ʃm(3)
Sum =Ʃm(1,2)
Carry = Ʃm(3)
A Sum
Full
B Adder
C Carry
0 0 0 0 0 0
Truth 1 0 0 1 1 0
Table of
Full adder 2 0 1 0 1 0
3 0 1 1 0 1
4 1 0 0 1 0
Sum = Ʃm(1,2,4,7)
5 1 0 1 0 1
Carry = Ʃm(3,5,6,7)
6 1 1 0 0 1
7 1 1 1 1 1
Dr. Nilesh Patidar and Mr. Shiraz Husain 74
Implementation of full adder using decoder
Sum =Ʃm(1,2,4,7)
Carry = Ʃm(3,5,6,7)
1
1
1
C' + S3'.S2' + S3'.S1' = 1
0110