COMP 103: Reading: Chapter 11, Up To Page. 577
COMP 103: Reading: Chapter 11, Up To Page. 577
Lecture 13
Adder Design
Reading:
Chapter 11, up to page. 577
[All lecture notes are adapted from Mary Jane Irwin, Penn State, which were adapted from Rabaeys Digital Integrated
Circuits, 2002, J. Rabaey et al.]
Control
z Finite state machines (PLA, ROM, random logic)
Interconnect
z Switches, arbiters, buses
Memory
z Caches (SRAMs), TLBs, DRAMs, buffers
A B Cin
Cout
B B B B B B
A A A
A A A
F=AB F=A+B F=AB
B B A
AND/NAND OR/NOR XOR/XNOR
PT FA
!B B !Cin Cin
A !S
!A S
B !B Cin !Cin
A !Cout
B Cin
!A Cout
!B !Cin
Cin
B S
Cout
16 transistors
COMP103- L13 Adder Design.7
VDD
VDD
Ci A B
A B
A
B
Ci B VDD
A
X
Ci
Ci A S
Ci
A B B VDD
A B Ci A
Co B
28 Transistors
COMP103- L13 Adder Design.8
Mirror Adder
24+4 transistors
B
A B B A B Cin
A
0-propagate kill
A Cin
!Cout !S
Cin
1-propagate
A Cin
generate
A
A B B A B Cin
B
Inversion Property
Inverting all inputs to a FA results in inverted values for
all outputs
A B A B
S S
A3 B3 A2 B2 A1 B1 A0 B0
Cout=C4 FA FA FA FA C0=Cin
S3 S2 S1 S0
inverted cell regular cell
Mirror Adder
24+4 transistors
B 6
A 8 B 8 B 8 A 4 B 4 Cin 4
A 6
8 A 8 4 Cin 6
!Cout !S
Cin
4 A 4 2 Cin 3
A 3
A 4 B 4 B 4 A 2 B 2 Cin 2
B 3
Sizing: Since !Cout drives 2 internal and 2 inverter transistor gates (to
form Cin for the nms bit adder) should oversize the carry circuit.
PMOS/NMOS ratio of 2.
A 64-bit Adder/Subtractor
add/subt C0=Cin
Ripple Carry Adder (RCA) A0 1-bit
built out of 64 FAs FA S0
B0 C1
Subtraction complement
all subtrahend bits (xor A1 1-bit
FA S1
gates) and set the low B1
C2
order carry-in
A2 1-bit
RCA FA S2
B2 C3
z advantage: simple logic,
...
A3 B3 A2 B2 A1 B1 A0 B0
Cout=C4 FA FA FA FA C0=Cin
S3 S2 S1 S0
C1 = G0 | P0C0
C2 = G1 | P1G0 | P1P0 C0
C3 = G2 | P2G1 | P2P1G0 | P2P1P0 C0
C4 = G3 | P3G2 | P3P2G1 | P3P2P1G0 | P3P2P1P0 C0
!Ci+1 !Ci
Gi
Pi
clk
Total delay of
z time to form the switch control signals Gi and Pi
z setup time for the switches
z signal propagation delay through N switches in the worst case
!C4 !C0
S3 S2 S1 S0
clk
P3 P2 P1 P0
Ci,4
G3 G2 G1 G0 Ci,0
clk
!(G0 | P0 Ci,0)
!(G2 | P2G1 | P2P1G0 | P2P1P0 Ci,0)
3 3 3 3 3 clk
P3 P2 P1 P0
Ci,4 1 2 3 4
1 G3 2 G2 3 G1 4 G0 5 Ci,0
2 3 4 5 6 clk
Co,3
FA FA FA FA Ci,0
Co,3
S3 S2 S1 S0
BP = P0 P1 P2 P3 Block Propagate
block carry-out
carry-out
BP
block carry-in
P3 P2 P1 P0
!Cout Cin
G3 G2 G1 G0
BP
skip level 1
AND of the
skip level 2 first level skip
signals (BPs)
COMP103- L13 Adder Design.24
Carry-Skip Adder Comparisons
70
60
50
40 RCA
CSkA
30 VSkA
20
10
0
8 bits 16 bits 32 bits 48 bits 64 bits