Professional Documents
Culture Documents
Adders
Awais M. Kamboh
Slide 1
Addition
Speed of the adder has a big impact on the clock speed of the processor, rather it
determines the clock speed of the processor.
How to Add
How to add two numbers, e.g. 747 + 854
Digit by digit: Start from LSB side, add two digits, add carry to next digit.
Sequential Effect
The challenge is that we cannot do the last addition till we know the carry that comes from
the digits before it. So there is a sequential effect.
We cannot compute sum from all the bits simultaneously because we do not know the
answer of previous digits.
Binary Addition
Circuits use binary representation.
Awais M. Kamboh
Slide 2
Full Adder
A
Cin
Cin
B
Full
adder
Full
adder
Cout
Cout
Sum
Sum
S == AA
B
S
B Ci C i
= ABC i + ABC i + ABCi + ABCi
C o = AB + BCi + ACi
C o = AB + BCi + ACi
Awais M. Kamboh
Slide 3
Awais M. Kamboh
Slide 4
Awais M. Kamboh
Slide 5
Negative Numbers
Sign-Magnitude Representation
Not very handy in terms of arithmetic
0|01011 = +11
1|01011 = -11
2s Complement Representation
Invert all bits, then add 1
01011 -> 10101 = -11
(MSB=1 if number is negative)
Inverse of 2s Complement is the same, invert all bits then add 1
Good things about 2s complement is that we do not need to worry about sign
of the numbers, e.g. add +11 with -11 should give 0.
We throw away the final carry
Awais M. Kamboh
Slide 6
Ci
B
A
B
B
Ci
A
Ci
VDD
Ci
A
Ci
VDD
A
Co
Ci
28 Transistors
Awais M. Kamboh
Slide 7
28 Transistors
Awais M. Kamboh
Slide 8
Inversion Property
A
Ci
A
A
FA
Co
C iCi
B
B
FA
FA
CCoo
Ci
SS
S A B C i = S A B Ci
S A B C i = S A B C
C o A B C i = Co A B Ci C A B C = C A B
o
i
o
Awais M. Kamboh
Slide 9
B0
Ci,0
A1
B1
Co,0
A2
Odd cell
B2
Co,1
A3
B3
Co,2
Co,3
FA
FA
FA
FA
S0
S1
S2
S3
Slide 10
Mirror Adder
Awais M. Kamboh
Slide 11
Awais M. Kamboh
Slide 12
Awais M. Kamboh
Slide 13
Ci
A Ci
Co
Ci
Co
S
GND
Awais M. Kamboh
Slide 14
When laying out the cell, the most critical issue is the
minimization of the capacitance at node Co.
Awais M. Kamboh
Slide 15
Awais M. Kamboh
Slide 16
Awais M. Kamboh
Slide 17
Awais M. Kamboh
Slide 18