Chương-3-Thiet Ke Mach To Hop
Chương-3-Thiet Ke Mach To Hop
Chương-3-Thiet Ke Mach To Hop
Logical
Effort
CMOS VLSI Design 4th Ed.
Outline
❑ Logical Effort
❑ Delay in a Logic Gate
❑ Multistage Logic Networks
❑ Choosing the Best Number of Stages
❑ Example
❑ Summary
❑ Decoder specifications:
4:16 Decoder
16 words
16
Register File
– 16 word register file
– Each word is 32 bits wide
– Each bit presents load of 3 unit-sized transistors
– True and complementary address inputs A[3:0]
– Each input may drive 10 unit-sized transistors
❑ Ben needs to decide:
– How many stages to use?
– How large should each gate be?
– How fast can decoder operate?
6: Logical Effort CMOS VLSI Design 4th Ed. 4
Delay in a Logic Gate
❑ Express delays in process-independent unit d = d abs
❑ Delay has two components: d = f + p
= 3RC
❑ f: effort delay = gh (a.k.a. stage effort)
3 ps in 65 nm process
– Again has two components 60 ps in 0.6 mm process
❑ g: logical effort
– Measures relative ability of gate to deliver current
– g 1 for inverter
❑ h: electrical effort = Cout / Cin
– Ratio of output to input capacitance
– Sometimes called fanout
❑ p: parasitic delay
– Represents delay of gate driving no load
– Set by internal parasitic capacitance
Normalized Delay: d
5 p=2
❑ What about d = (4/3)h + 2
4 g=1
NOR2? p=1
3 d=h+1
2 Effort Delay: f
1
Parasitic Delay: p
0
0 1 2 3 4 5
Electrical Effort:
h = Cout / Cin
10
x z
y
20
g1 = 1 g2 = 5/3 g3 = 4/3 g4 = 1
h1 = x/10 h2 = y/x h3 = z/y h4 = 20/z
h i = BH
❑ Now we compute the path effort
– F = GBH
❑ Path Delay D = d i = DF + P
fˆ = gi hi = F
1
N
fˆ = gh = g CCoutin
gi Couti
Cini =
fˆ
❑ Working backward, apply capacitance
transformation to find input capacitance of each gate
given load it drives.
❑ Check work by verifying input cap spec is met.
y
x
45
A 8
x
y B
45
y
x
45
A 8
x
y B
45
y
x
45
45
A P:
84 P:
x 4
N: 4 P:
y 12 B
B
N: 6 45
N: 3 45
8 4 2.8
D = NF1/N + P 16 8
= N(64)1/N + N
23
Datapath Load 64 64 64 64
N: 1 2 3 4
f: 64 8 4 2.8
D: 65 18 15 15.3
Fastest
D = NF + pi + ( N − n1 ) pinv
1
N Path Effort F
i =1
D 1 1 1
= − F N ln F N + F N + pinv = 0
N
=F
1
❑ Define best stage effort N
pinv + (1 − ln ) = 0
D(N) /D(N)
1.4
1.26
1.2 1.15
1.0
(=6) ( =2.4)
0.0
0.5 0.7 1.0 1.4 2.0
N/ N
❑ Decoder specifications:
4:16 Decoder
16 words
16
Register File
– 16 word register file
– Each word is 32 bits wide
– Each bit presents load of 3 unit-sized transistors
– True and complementary address inputs A[3:0]
– Each input may drive 10 unit-sized transistors
❑ Ben needs to decide:
– How many stages to use?
– How large should each gate be?
– How fast can decoder operate?
6: Logical Effort CMOS VLSI Design 4th Ed. 26
Number of Stages
❑ Decoder effort is mainly electrical and branching
Electrical Effort: H = (32*3) / 10 = 9.6
Branching Effort: B=8
10 10 10 10 10 10 10 10
y z word[0]
y z word[15]
effort delay f DF = f i
parasitic delay p P = pi
delay d= f +p D = d i = DF + P
gi Couti
6) Find gate sizes Cini =
fˆ
assign y = s ? d1 : d0;
endmodule
D0
S
Y
D1
S
D0
S
Y
D1
S
Y Y
(a) (b)
Y Y
D
(c) (d)
D0
S
Y
D1
S
A 4 B 4 A 4 B 4 B 6
2 C 4 C 4 D 4 C 6 A 3
A Y Y Y
1 A 2 A 2 C 2 D 6 E 6
C 1 Y
B 2 B 2 D 2 E 2 A 2
D 2 B 2 C 2
8 8
8 10 10
8 25 25 10 10 24
Y Y
25 6 6 12
8 8 25 6 6
8
8
160 * (4/3) / 4.2 = 50 16 160 * 1 / 4.5 = 36
16
2 2 Y
A 2 6C
B 2x 2C
2 2
Y
A 1 1
B 1 1
2 2 1
A Y A Y A Y
1/2 1 1/2
2 2 B 4
Y
2 A 4
A 2
unskewed A Y Y
1 guu = 1 B 2 guu = 4/3 1 1 guu = 5/3
gdd = 1 gdd = 4/3 gdd = 5/3
gavg
avg
=1 gavg
avg
= 4/3 gavg
avg
= 5/3
2 2 B 4
Y
2 A 4
A 1
HI-skew A Y Y
1/2 gu = 5/6 B 1 guu =1 1/2 1/2 guu = 3/2
u
gdd = 5/3 gdd =2 gdd =3
gavg
avg
= 5/4 gavg
avg
= 3/2 gavg
avg
= 9/4
1 1 B 2
Y
1 A 2
A 2
LO-skew A Y Y
1 guu = 4/3 B 2 guu = 2 1 1 guu = 2
gdd = 2/3 gdd = 1 gdd = 1
gavg
avg
=1 gavg
avg
= 3/2 gavg
avg
= 3/2
A
Y
reset
1 2
Y
A 4/3
reset 4
2 2 B 2
Y
fastest 1.414 A 2
A 2
A Y Y
P/N ratio 1 gu = 1.15 B 2 gu = 4/3 1 1 gu = 2
gd = 0.81 gd = 4/3 gd = 1
gavg = 0.98 gavg = 4/3 gavg = 3/2