Professional Documents
Culture Documents
18B11EC215
Lecture-12
Binary Adders and Subtractors
1
Outlines
▪ Introduction
▪ Analysis Procedure
▪ Design Methods
▪ Half Adder
▪ Full Adder
▪ Half Subtractor
▪ Full Subtractor
▪ References
2
Introduction [1-3]
▪ Digital circuits are divided into two broad categories:
1. Combinational Logic Circuits
2. Sequential Logic Circuits
▪ Combinational Logic Circuit: In these circuits, the outputs at
any instant of time depend upon the inputs present at that instant
of time. This means there is no memory in these circuits.
A A+B
B F1 = (A+B).(A'+B')
F2 = (A'+B')' = A.B
A'+B'
Steps:
1. Label the inputs and outputs.
2. Obtain the functions of intermediate
points and the outputs.
3. Draw the truth table.
4. Deduce the functionality of the circuit half adder.
Design Methods [1]
▪ Different combinational circuit design methods:
❖ Gate-level method (with logic gates)
❖ Block-level design method
X Half S
Y Adder C
(X + Y)
Half Adder
Full Adder [2]
▪ Half-adder adds only two bits and there is no provision to add a
carry coming from the lower order bits when multibit addition is
performed.
▪ To add two binary numbers, we need to add 3 bits (including the
carry).
▪ Example:
C
YZ
X
00 01 11 10
0 1
1 1 1 1
YZ
S
Using K-map, simplified SOP form: X
00 01 11 10
0
• C = X.Y + X.Z + Y.Z 1 1
1 1 1
• S = X'.Y'.Z + X'.Y.Z'+X.Y'.Z'+X.Y.Z
Full Adder [3]
▪ Alternative formulas using algebraic manipulation:
C = X.Y + X.Z + Y.Z
= X.Y + X (Y+Y').Z + (X+X')YZ
= X.Y + X YZ+XY'Z + X YZ +X'YZ
= X.Y (1+Z) + (X⊕Y).Z
= X.Y + (X⊕Y).Z
S = X'.Y'.Z + X'.Y.Z' + X.Y'.Z' + X.Y.Z
= X'.(Y'.Z + Y.Z') + X.(Y'.Z' + Y.Z)
= X'.(Y⊕Z) + X.(Y⊕Z)'
= X⊕(Y⊕Z) or (X⊕Y)⊕Z
Gate-level Design: Full Adder [3]
▪ Circuit for following formulas:
C = X.Y + (X⊕Y).Z
S = (X⊕Y)⊕Z
X (X⊕Y)
Y S
(XY)
S = (X⊕Y)⊕Z
X (X⊕Y)
X Sum X
Y Y Sum S
Y
Half Half
Adder Adder
(X.Y)
Carry Carry
C
X
D
Y
B
Full Subtractor [2]
▪ A full subtractor is a
BOUT D
combinational circuit that X Y Bin
(Borrow) (Difference)
performs subtraction involving
three bits, namely minuend, 0 0 0 0 0
subtrahend, and borrow-in (Bin). 0 0 1 1 1
The logic symbol and truth table 0 1 0 1 1
are shown here. 0 1 1 1 0
Symbol: 1 0 0 0 1
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Full Subtractor [2]
• Draw K-maps using the previous truth table and determine
the simplified Boolean expressions-
Full Subtractor [2]
▪ Draw the logic diagram.
▪ The implementation of full adder using 1 XOR gate, 3 AND
gates, 1 NOT gate and 1 OR gate is as shown below.
Full Subtractor [3]
▪ Alternative formulas using algebraic manipulation:
Bout = X'.Y + X'. BIN + Y. BIN
= X'.Y + (X' + Y). BIN
= X'.Y + ((X⊕Y)' + X'.Y). BIN
= X'.Y + (X⊕Y)'. BIN + X'.Y. BIN
= X'.Y + (X⊕Y)'. BIN
22