Professional Documents
Culture Documents
Introduction Delay in a Logic Gate Multistage Logic Networks Choosing the Best Number of Stages Example Summary
logical effort-Anitha R.
???
logical effort-Anitha R.
Ben Bitdiddle is the memory designer for the Motoroil 68W86, an embedded automotive processor. Help Ben design the decoder for a register file.
A[33 A[33 : ] : ] 3 bits 3
Decoder specifications:
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
33 Decoder : 3
3 words 3
3 3
Register File
logical effort-Anitha R.
d abs d=
3RC
logical effort-Anitha R.
d abs d=
d= f +p
logical effort-Anitha R.
d abs d=
d= f +p
logical effort-Anitha R.
Delay has two components Effort delay f = gh (a.k.a. stage effort) Again has two components g: logical effort Measures relative ability of gate to deliver current g 1 for inverter
logical effort-Anitha R.
d abs d=
d= f +p
Delay has two components Effort delay f = gh (a.k.a. stage effort) Again has two components h: electrical effort = Cout / Cin Ratio of output to input capacitance Sometimes called fanout
d abs d=
d= f +p
logical effort-Anitha R.
d abs d=
d= f +p
Parasitic delay p
Represents delay of gate driving no load Set by internal parasitic capacitance
logical effort-Anitha R.
d =f+p = gh + p
NormalizedDelay:d
3 3 3 3 3 3 3 3 3 3
3 -input NAND
Inverter g= p= d=
g= p= d=
logical effort-Anitha R.
d =f+p = gh + p
NormalizedDelay:d
3 3 3 3 3 3
3 -input NAND
Inverter g = 33 / p=3 d = ( 33 + 3 / )h
Parasitic Delay: p
3 3 3 3 3 3 3
logical effort-Anitha R.
DEF: Logical effort is the ratio of the input capacitance of a gate to the input capacitance of an inverter delivering the same output current. Measure from delay vs. fanout plots Or estimate by counting transistor widths
3 A 3 Y 3 Cin = 3 g = 33 / A B Cin = 3 g = 33 / 3 3 3 Y A B 3 Cin = 3 g = 33 / 3 3 3 Y
logical effort-Anitha R.
Logical effort of common gates Gate type 1 Inverter NAND NOR Tristate / mux 2 XOR, XNOR 1 4/3 5/3 2 4, 4 5/3 7/3 2 6/3 9/3 2 (n+2)/3 (2n+1)/3 2 2 Number of inputs 3 4 n
Number of inputs 3 3 3 6 6 4 4 4 8 8
logical effort-Anitha R.
n n n 2n
Logical Effort: Electrical Effort: Parasitic Delay: Stage Delay: Frequency: fosc =
g h p d
= = = =
logical effort-Anitha R.
Logical Effort: g=1 Electrical Effort: h = 1 Parasitic Delay: p=1 Stage Delay: d=2 Frequency: fosc = 1/(2*N*d) = 1/4N
logical effort-Anitha R.
h= p=
logical effort-Anitha R.
Logical Effort: g = 1 Electrical Effort: h = 4 The FO4 delay is about Parasitic Delay: p = 1 200 ps in 0.6 m process Stage Delay: d=5
60 ps in a 180 nm process f/3 ns in an f m process
logical effort-Anitha R.
Logical effort generalizes to multistage networks Path Logical Effort Path Electrical Effort Path Effort
F = f i = gi hi
x g3= 33 / h3= y/x z g3= 3 h3= 33 /z
G = gi Cout-path H= Cin-path
3 3
logical effort-Anitha R.
H=
F = f i = gi hi
logical effort-Anitha R.
G H GH h1 h2 F
= = = = = = GH?
3 3
3 3 3 3 3
logical effort-Anitha R.
G H GH h1 h2 F
=1 = 90 / 5 = 18 = 18 = (15 +15) / 5 = 6 = 90 / 15 = 6
3 3
3 3 3 3 3
= g1g2h1h2 = 36 = 2GH
logical effort-Anitha R.
b= B = bi
= BH
logical effort-Anitha R.
DF = f i P = pi D = d i = DF + P
logical effort-Anitha R.
D = d i = DF + P
f = gi hi = F N
D = NF N + P
This is a key result of logical effort Find fastest possible delay Doesnt require calculating gate sizes
logical effort-Anitha R.
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.
logical effort-Anitha R.
logical effort-Anitha R.
x x A 3 x y 3 3 B 3 3
Logical Effort Electrical Effort Branching Effort Path Effort Best Stage Effort Parasitic Delay Delay
G= H= B= F=
f =
P= D=
logical effort-Anitha R.
x x A 3 x y 3 3 B 3 3
Logical Effort Electrical Effort Branching Effort Path Effort Best Stage Effort Parasitic Delay Delay
f = 3F = 3
logical effort-Anitha R.
3 3 A P: 3 N: 3 P: 3 N: 3 P: 33 B 3 3 N: 3
logical effort-Anitha R.
Compare many alternatives with a spreadsheet Design NAND4-INV NAND2-NOR2 INV-NAND4-INV NAND4-INV-INV-INV NAND2-NOR2-INV-INV NAND2-INV-NAND2-INV INV-NAND2-INV-NAND2-INV N 2 2 3 4 4 4 5 G 2 20/9 2 2 20/9 16/9 16/9 16/9 P 5 4 6 7 6 6 7 8 D 29.8 30.1 22.1 21.1 20.5 19.7 20.4 21.6
NAND2-INV-NAND2-INV-INV-INV 6
logical effort-Anitha R.
Term number of stages logical effort electrical effort branching effort effort effort delay parasitic delay delay
Stage
3 g h= b=
Cout Cin Con-path +Coff-path Con-path
Path
N G = gi H=
Cout-path Cin-path
B = bi F = GBH DF = f i P = pi D = d i = DF + P
f = gh f p d= f +p
logical effort-Anitha R.
1) 2) 3) 4) 5)
F = GBH Compute path effort Estimate best number of stages N = log 3F Sketch path with N stages D = NF + P Estimate least delay f =F Determine best stage effort
3 N 3 N
6)
gi Couti Cini = f
logical effort-Anitha R.
logical effort-Anitha R.
Power is drawn from a voltage source attached to the VDD pin(s) of a chip.
P Instantaneous Power: (t ) = I (t )V (t )
E = P (t )dt
3
Pavg
E 3 = = P (t )dt T T 3
logical effort-Anitha R.
P ( t ) = I DD ( t ) VDD VDD
PR ( t ) =
VR3( t ) R
3 = IR ( t ) R
dV EC = I ( t )V ( t ) dt = C V ( t ) dt dt 3 3 = C V ( t ) dV = 3CVC3 3
3
logical effort-Anitha R.
VC
When the gate output rises Energy stored in capacitor is But energy drawn from the supply is
EVDD = I ( t )VDD dt = CL
3 3
3 EC = 3C LVDD 3
dV VDD dt dt
= CLVDD
VDD
dV = C V
3
3 L DD
Half the energy from VDD is dissipated in the pMOS transistor as heat, other half stored in capacitor When the gate output falls Energy in capacitor is dumped to GND Dissipated as heat in the nMOS transistor
logical effort-Anitha R.