Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Speed due to computing carry bit i without waiting for carry bit i − 1.
These Notes
For a basic introduction see Brown & Vranesic 3rd Edition Section 3.4.
The cost analysis for the hierarchical CLAs has been omitted for now.
cla-1 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-1
cla-2 cla-2
ai bi CLCi
Operates on single bits. a b CLC
g gi
Ports for CLC i
Sum
s = a ⊕ b ⊕ c.
ci c
Propagate Signal s
p=a+b si
Generate Signal
g = ab
cla-2 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-2
cla-3 cla-3
ai bi CLCi
CLC Important Features a b CLC
There is no carry out. g gi
Signal p and g do not depend on c.
p pi
ci c
s
si
cla-3 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-3
cla-4 Overview of CLA cla-4
B
a0 b0 a1 b1 a2 b2 an-1 bn-1
CLC0 CLC g0 CLC1 CLC g1 CLC2 CLC g2 CLCn-1 CLC gn-1
carry out
carry in
c0 p0 c1 p1 c2 p2 cn-1 pn-1 cn
s0 s1 s2 sn-1
g-1
S
cla-4 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-4
cla-5 Carry Generation Logic cla-5
B
a0 b0 a1 b1 a2 b2 a3 b3
CLC0 CLC g0 CLC1 CLC g1 CLC2 CLC g2 CLC3 CLC g3
carry in
c0 p0 c1 p1 c2 p2 c3 p3
s0 s1 s2 s3
S
g-1
cla-5 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-5
cla-6 cla-6
A
B
a0 b0 a1 b1 a2 b2 a3 b3
CLC0 CLC g0 CLC1 CLC g1 CLC2 CLC g2 CLC3 CLC g3
carry in
c0 p0 c1 p1 c2 p2 c3 p3
s0 s1 s2 s3
S
g-1
c0 = g−1 .
c1 = g−1 p0 + g0 .
c2 = g−1 p0 p1 + g0 p1 + g1 .
c3 = g−1 p0 p1 p2 + g0 p1 p2 + g1 p2 + g2 .
cla-6 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-6
cla-7 cla-7
c0 = g−1 .
c1 = g−1 p0 + g0 .
c2 = g−1 p0 p1 + g0 p1 + g1 .
c3 = g−1 p0 p1 p2 + g0 p1 p2 + g1 p2 + g2 .
Generalizing we get
cla-7 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-7
cla-8 CLA Delay Analysis cla-8
Delay Models
These models too crude for choosing between adders with delays within 40% of each other. . .
. . . in such cases write HDL descriptions . . .
. . . and use synthesis program to determine delays.
cla-8 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-8
cla-9 cla-9
cla-9 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-9
cla-10 cla-10
Steps
(1) If all gate outputs are marked with a time then go to step (2).
Otherwise, consider gates that do not have a time marked at their outputs . . .
. . . and find one in which all inputs are marked with a time.
Go to step (1).
cla-10 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-10
cla-11 CLA Delay Analysis cla-11
Starts at inputs, flows through p0 (or any other pi ), cn−1 , ending at sn−1 .
a0 b0 a1 b1 an-1 bn-1
CLC0 g0 CLC1 CLC g1 gn-2 CLC gn-1 Delays (longest
n-1
carry out
p0 pn-1 path to output). c
carry in
c1 p1 pn-2 n
c0 0+1 cn-1
3+2 5
0+1 s1 sn-1 1+2lgn+ 2
s0 3+2lg n S
g-1
gn-4
gn-3
pn-3
Unrealistic
Delay 1+1
1+lg n
Conservative 2+1
Delay 1+lg n+ lg n
cla-11 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-11
cla-12 cla-12
carry in
c1 p1 pn-2 n
c0 0+1 cn-1
3+2 5
0+1 s1 sn-1 1+2lgn+ 2 3+2lg n S
Generation of c: g
s0
-1
Unrealistic
Computation of s: Delay 1+1
1+lg n
Unrealistic: Delay 2, Total 5 Conservative
Delay
2+1
1+lg n+ lg n
Conservative: Delay 2, Total 3 + 2⌈lg n⌉
Total Delay:
cla-12 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-12
cla-13 cla-13
Comparison
cla-13 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-13
cla-14 CLA Cost Analysis cla-14
Cost Model
cla-14 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-14
cla-15 cla-15
AND Gates
z }| {
OR Gate i+1
z}|{ X i(i + 1) i(i + 3)
i + j−1 =i+ =
j=2
2 2
cla-15 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-15
cla-16 CLA v. Ripple Cost Comparison cla-16
8-bit ripple: 80
cla-16 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-16
cla-17 Hierarchical CLA cla-17
Structure:
A
lm bits l bits
B
l bits
a0 b0 a1 b1 a2 b2 a b
CLB-x0 CLB-x G0 CLB-x1 CLB-x G1 CLB-x2 CLB-x G2 CLB-x CLB-x G
carry out
carry in
c0 P0 c1 P1 c2 P2 c P c
s0 s1 s2 s
lm bits
G l bits
S
The CLB-x blocks can contain any kind of l-bit adder, including ripple and CLA.
cla-17 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-17
cla-18 cla-18
Since CGL and the logic to generate P and G operate on fewer bits . . .
. . . cost is lower.
cla-18 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-18
cla-19 cla-19
cla-19 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-19
cla-20 Carry Lookhead Block (CLB-x) cla-20
a b l bits of B from bit # il to bit # (i+1)l-1. CLB-x
a0
b0
l bits a1
b1
a b
G G
c l-bit al-3
cin
type-x
bl-3
adder
s al-2
s
bl-2
l bits al-1 P P
bl-1
S[(i+1)l-1:il]
cla-20 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-20
cla-21 cla-21
a b l bits of B from bit # il to bit # (i+1)l-1. CLB-x
a0
CLB Propagate and Generate Outputs b0
l bits a1
Let gi = ai bi and pi = ai + bi . b1
a b
G G
c l-bit al-3
l−1 cin
Y type-x
bl-3
adder
P = pj s al-2
s
j=0 bl-2
l bits al-1 P P
= p0 p1 · · · pl−1
bl-1
Notice that logic for G is almost the same as the logic for ci . . .
. . . an important difference is that the carry in is ignored.
cla-21 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-21
cla-22 cla-22
Type of CLB: CLB-c (block uses l-bit CLA) or CLB-r (block uses l-bit ripple adder).
Are these good choices? To find answer need to analyze cost and performance.
cla-22 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-22
cla-23 Hierarchical CLA Delay Analysis cla-23
Delay Analysis for Hierarchical CLA with CLB-r and lookahead CGL
carry out
a b
CLB-rm-1 l-bit ripple adder
CLB-r0 a0
a1
b0 0+1+2lg l a0
a1
b0
al-3
b1
G0 al-3
b1
G
Gm-1
carry in
c0 bl-3 bl-3
al-2
al-1
bl-2 P0 cm-1 al-2
al-1
bl-2
P
Pm-1 cm
bl-1 bl-1
s0 l bits sm-1 S
l-bit ripple adder lm bits
Pm-3
Unrealistic
Delay
3+2 = 5
Conservative Delay 1+2lg l + 2lgm = 1+2lglm
cla-23 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-23
cla-24 Hierarchical CLA Delay Analysis cla-24
cla-24 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-24
cla-25 cla-25
cla-25 LSU EE 3755 Lecture Transparency. Formatted 8:33, 23 April 2014 from cla. cla-25