U3.4 Notes PDF
U3.4 Notes PDF
P Narashimaraja
[email protected]
R.V.C.E
September, 2018
1. Review
2. Introduction
3. Addition
Single-bit addition
N-bit Adder
Carry-Ripple Adder
Manchester Carry Chain Adder
Carry-Skip Adder
Carry-Lookahead Adder
Carry-Select Adder
Review
Introduction
Introduction
Chip functions generally can be divided into the following categories:
Datapath operators
Memory elements
Control structures
Special-purpose cells
I/O
Power distribution
Clock generation and distribution
Analog and RF
Addition
Addition
Single-bit addition
Single-bit addition
Half adder
Full adder
Inputs Outputs
A B Cout S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
0 1
0
0 1 0
0 1 S AB C ABC A BC ABC
1 1 0 pA ` B q ` C P ` C
0 0 1 Cout AB AC BC
1 0 0 1 0
1 1 0 MAJpA, B, C q
0 1 0
1 1 1 0 0
1 1 1
[email protected] DVD - Datapath subsystems
Review Introduction Addition
A A
B
B B
A
B S
C C C
A B B
S
A C C 32 transistors:
MAJ
C A
B Cout 6 for inverters,
C B Cout
B B 10 for majority gate,
C A
and
16 for XOR3
A B B
A A
Cout
S
uses only 28
transistors
Cout
Kill (K)
Generate (G)
Cout
Review Introduction Addition
Propagate signal
From the table, it is clear that we need a circuit, that propagates Cin to Cout
when A B.
A A1 A0
B B 0 B 0
C C C
Cout Cout Cin Cout
Kill/Generate signal
From truth table, Cout 1 (or) 0 when A B 1 (or) A B 0 irrespective
of Cin
A0 A1
B 0 B 1
Cout 1 Cout 0
PGK
Eg. A B 0
A0 A0
B 0 B 0
C 1 C 0
Cout 1 Cout 1
Mirror adder
Inputs Outputs
A B Cin Cout S
0 0 0 0 0
0 0 1 0 1
When any one among 0 1 0 0 1
the 3 i/p.s is odd, 0 1 1 1 0
S Cout 1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
Mirror adder
When any one among the 3 i/p.s is odd, S Cout
Let get the idea gained from the Propagate signal (Which allowed to propagate
when there is an odd among the 2 i/p.s)
B B 1 B 1
C C 1 C 1
XOR gate
A brilliant XOR structure that combines Transmission gate and Pass transistors
B B 1 B 0
0
A A0 A0
P P 1 1
P 0 0
0 1 0
B 0 B 1
1
A1 A1
P 1 0
P 0 1
0 0
S pA ` B ` C q pP ` C q P C PC
pC C q1
hkkkkkkkikkkkkkkj
Cout looooooomooooooon
ABC ABC looooooomooooooon
ABC ABC
AB pAB AB qC
pAB AB qA pAB AB qC
PA PC
S P
P
0
S
1
P
0
Cout
Cout
1
B C
Cout
B C
S
A B C
B C
A B C
Cout
B C
S
B
A
B
Review Introduction Addition
Addition
N-bit Adder
Multi-bit addition
Carry-Propagate addition
PG Carry-Ripple Addition
Manchester Carry Chain Adder
based on Carry Generation
Carry-Skip Adder and Propagation
Carry-Lookahead Adder
Carry-Select Adder
i¥k ¡ j:
ð G1:0 G1:1 P1:1 G11:0
Gi:j Gi:k Pi:k Gk1:j G1:1 P1:1 G0:0
i ¥k ¡ l ¡ j:
G2:0 G2:2 P2:2 G21:0
Gi:j Gi:k Pi:k Gk1:m Pi:k Pk1:l Gl1:j G2:2 P2:2 G1:1 P2:2 P1:1 G0:0
Gi:j Gi:k Pi:k Gk1:l Pi:k Pk1:l Gl1:m Pi:k Pk1:l Pl1:m Gm1:j
Gi:k Pi:k pGk1:1 Pk1:l pGl1:m Pl1:m Gm1:j qq
Pi:j Pi:k Pk1:l Pl1:m Pm1:j
G3:0 G3:3 P3:3 G2:2 P3:3 P2:2 G1:1 P3:3 P2:2 P1:1 G0:0
G4:1 G4:4 P4:4 G3:3 P4:4 P3:3 G2:2 P4:4 P3:3 P2:2 G1:1
P4:1 P4:4 P3:3 P2:2 P1:1
[email protected] DVD - Datapath subsystems
Review Introduction Addition
PG Carry-Ripple Addition
Implementation of Carry-Ripple adder
Use P & G to simplify the MAJ function into an AND-OR gate:
Note: Group propagate signals are never used and need not be computed.
Group PG cells
Black cell Gray cell Buffer
i:k k1:j i:k k1:j
i:k
Gi:k Gi:j
Pi:k
Gk1:j
Pi:j Pi:j
Gi:k Gi:j
Pi:j Pi:k
Pk1:j Gk1:j Gi:j Gi:j
Pi:j
i:j Pm1:j
Group PG cells
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
The graph shows the delay
caused only by group Generate
logic.
Critical path delay:
where
Delay
tpg is the delay of 1-bit
propagate/generate gates
tAO is the delay of AND-OR
gate in the gray cell
txor is the delay of the final sum
15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 7:0 6:0 5:0 4:0 3:0 2:0 1:0 0:0
XOR
[email protected] DVD - Datapath subsystems
Review Introduction Addition
P
φ
Cin Cout
G
Propagate Generate
[email protected] DVD - Datapath subsystems
Review Introduction Addition
C1 g1 p1 C 0
C2 g2 p2 pg1 p 1 C0 q
C3 g3 p3 pg2 p2 pg1 p1 C0 qq
P1 P2 P3
φ φ φ
C0 C1 C2 C3
G1 G2 G3
P1 P2 P3
φ φ φ φ 3 2 1 0
C3 pG3:0 q
C0 C1 C2
G0 G1 G2 G3
3 2 1 0
Note: Under the assumption that the parasitic delay through
the chain is minimum, one could expect the group generate
signals (G3:0 G0:0 ) are produced simultaneously.
3:0 2:0 1:0 0:0
In reality, the parasitic delay grows in quadratic with the
length of the carry chain - resulting in tG3:0 ¡ tG1:0 .
Bit position
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Delay
15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 7:0 6:0 5:0 4:0 3:0 2:0 1:0 0:0
φ
C3
φ p3 g3
C2
φ p2 g2 p2 g2
C1
p1 g1 p1 g1 p1 g1
c0 c0 c0
c0
Exercise
(i). Develop equations for the logical effort and parasitic delay with respect to
the C0 input of an n-stage Manchester carry chain computing C1 Cn .
Consider all of the internal diffusion capacitances when deriving the parasitic
delay. Use the transistor widths shown in Figure and assume the Pi and Gi1
transistors of each stage share a single diffusion contact.
P1 P2 Pn
φ 1 φ 1 φ 1
3 3 3 Cn pGn:0 q
C0 pG0 q 3 G1 3
2 G2 3
2 Gn 3 2
1 1
1
C1 pG1:0 q Cn1 pGn1:0 q
Solution
P1 P2 Pn
φ 1 φ 1 φ 1
3 3 3 Cn pGn:0 q
C0 pG0 q 3 G1 3
2 G2 3
2 Gn 3 2
1 1
1
C1 pG1:0 q Cn1 pGn1:0 q
P1 P2 Pn
Cn pGn:0 q
G0 3C p3 3 p3 3 1 2 1qC p3 3 1 2 1qC
1 2
1qC
Solution
P1 P2 Pn
Cn pGn:0 q
G0 3C p3 3 p3 3 1 2 1qC p3 3 1 2 1qC
1 2
1qC
Solution
R
p3C q ° pi 1q R p10C q
n
p
3 3 i 1
3
3 3RC
From finite geometric series:
npn 1q
1 2 3 n
2
and if there are pn 1q terms, then
1 2 3 n pn 1q
pn 1qpn 2q
2
Pulling the 1st term from LHS to RHS,
n2 2
2 3 pn 1q
3n
2
2
1 n 2 3n
° pi 1q 10
n npn 3q 10
1 1
p 1
3 i 1
3 2 3
3 3 3
[email protected] DVD - Datapath subsystems
Review Introduction Addition
Solution
10npn 3q
1 n2
p1
6 n 4
10 30
3 24 24 3
Now the delay along the chain could be expressed as:
n2
dg p1
n 4
10 30
24 24 3
Exercise
(ii). What Manchester carry chain length gives the least delay for a long adder?
The delay per bit scales as:
n2
d t u
1 n 7
10 5
n 24 4 3
Taking the derivative of delay w.r.t length of each chain n and setting that equal
to 0, ñ allows us to solve for the best chain length
Bd 10 7 0
B‘n 24 3n2
n 2.36
Because the parasitic capacitance is large, the best delay is achieved with short
carry chains.
[email protected] DVD - Datapath subsystems
Review Introduction Addition
Carry-Skip Adder
The critical path involves the initial PG logic producing a carry out of bit 1, three
AND-OR gates rippling it to bit 4, three multiplexers bypassing it to C12, 3
AND-OR gates rippling through bit 15, and a final XOR to produce S16.
[email protected] DVD - Datapath subsystems
Review Introduction Addition
Delay
16:0 15:0 14:0 13:0 12:0 11:0 10:0 9:0 8:0 7:0 6:0 5:0 4:0 3:0 2:0 1:0 0:0
[email protected] DVD - Datapath subsystems
Review Introduction Addition
Delay
G1:0 w.k, G4:0 G4:1 P4:1 G0:0
where, G0:0 Cin and the gray cells
G4:1
G2:0
G3:0 spanning b/w 4:1 provides us G4:1 .
G4:0
Carry-Lookahead Adder
Carry-Lookahead Adder
Using valency-4 black cells to compute 4-bit group PG signals
Carry-Select Adder