Professional Documents
Culture Documents
Logical Effort
Logical Effort
Logical Effort
6. Logical Effort
40
Jacob A. Abraham
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 1/1 v
Introduction
mm 40 60 80 100 120
Chip designers have to face a bewildering array of choices
What is the best circuit topology for a function?
How many stages of logic give least delay?
40 wide should the transistors be?
How
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 1/1 v
Example
Design the decoder for a register file
mm specifications
Decoder 40 60 80 100 120
16 word register file
Each word is 32 bits wide
Each
40
bit presents load of 3 unit-sized transistors
True and complementary address inputs A[3:0]
Each input may drive 10 unit-sized transistors
Need to60decide
How many stages to use?
How large should each
gate be?
80
How fast can decoder
operate?
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 2/1 v
Delay in a Logic Gate
Express delay in a process-independent unit
τ = 3RC
mm 40 60 80 100 120
d= dabs ≈ 12 ps in 180 nm process
τ
40 ps in 0.6 µm process
Delay has two components: d = f + p
40
Effort delay, f=gh (stage effort)
g: Logical Effort h: Electrical Effort=Cout /Cin
Measures relative ability of Ratio of output to input
gate to
60 deliver current capacitances, sometimes called
g ≡ 1 for inverter fanout effort
Parasitic delay, p
Represents
80 delay of gate driving no load
Set by internal parasitic capacitance
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 3/1 v
Delay Plots
mm 40 60 80 100 120
d=f +p
40
= gh + p
60
What about
NOR2?
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 4/1 v
Computing Logical Effort
60
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 5/1 v
Catalog of Gates
mm 40 60 80 100 120
40 Number of inputs
Gate type
1 2 3 4 n
Inverter 1
NAND 4/3 5/3 6/3 (n+2)/3
NOR 60 5/3 7/3 9/3 (2n+1)/3
Tristate/Mux 2 2 2 2 2
XOR, XNOR 4,4 6,12,6 8,16,16,8
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 6/1 v
Catalog of Gates
mm 40 60 80 100 120
Parasitic delay of common gates
In multiples of pinv (≈ 1)
40
Number of inputs
Gate type
1 2 3 4 n
Inverter 1
NAND 2 3 4 n
60
NOR 2 3 4 n
Tristate/Mux 2 4 6 8 2n
XOR, XNOR 4 6 8
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 7/1 v
Example: Ring Oscillator
mm the frequency
Estimate 40 of an N-stage
60 ring 80
oscillator 100 120
40
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 8/1 v
Example: FO4 Inverter
Estimate the delay of a fanout-of-4 (FO4) inverter
mm 40 60 80 100 120
40
60
The FO4 delay is about:
Logical Effort: g = 1
200 ps in a 0.6µm process
Electrical Effort: h = 4
60 ps in a 180 nm process
80
Parasitic Delay: p = 1
f/3 ns in a f µm process
Stage Delay: d = 5
(f/3 ps in a f nm process)
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 9/1 v
Multistage Logic Networks
mm
Logical effort40generalizes 60
to multistage80networks 100 120
Q
Path Logical Effort, G = gi
C
Path Electrical Effort, H = Cout−path
Q in−path
40
Q
Path Effort, F = fi = gi hi
60
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 10 / 1 v
Consider Paths that Branch
mm 40 60 80 100 120
G =1
H = 40
90 / 5 = 18
GH = 18
h1 = (15 +15)/5 = 6
h2 = 90/15 = 6
F = g1 g2 h1 h2 = 36 = 2GH
60
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 11 / 1 v
Branching Effort and Multistage Delays
Branching
mm Effort40accounts for60branching between
80
stages
100
in path 120
Con path + Cof f path
b=
Con path
Y Y
B= bi (Note : hi = BH)
40
Now, path effort, F = GBH
Multistage Delays
60 X
Path Effort Delay, DF = fi
X
Path Parasitic Delay, P = pi
X
80 Path Delay, D = di = DF + P
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 12 / 1 v
Designing Fast Circuits
1
60 D = NF N + P
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 13 / 1 v
Gate Sizes
mm 40 60 80 100 120
How wide should the gates be for the least delay?
Cout
fˆ = gh = g
40
Cin
gi Couti
=⇒ Cini =
fˆ
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 14 / 1 v
Example: 3-stage Path
mm
Select gate sizes x40and y for least
60 delay from
80 A to B 100 120
40
60
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 15 / 1 v
Example: 3-stage Path, Cont’d
mm 40 60 80 100 120
40
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 16 / 1 v
Example: 3-stage Path, Cont’d
Workmm
backward for
40sizes 60 80 100 120
y = 45 * (5/3) / 5 = 15
x = (15*2) * (5/3) / 5 = 10
40
60
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 17 / 1 v
Best Number of Stages
How many stages should a path use?
Minimizing number
mm 40 of stages
60 is not always
80 fastest100 120
Example: drive 64-bit datapath with unit inverter
1
D =40 NF N + P
1
D = N(64) N + N
60
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 18 / 1 v
Example of a Derivation Using the Logical Effort Equations
∂D 1 1 1
= −F N lnF N + F N + pinv = 0
∂N
1
Define
60best stage effort, ρ = F
N
40
60
2.4
80 < ρ < 6 gives delay within 15% of optimal
We can be sloppy
For example, use ρ = 4
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 20 / 1 v
Decoder Example: Number of Stages
16 word, (32 bit) register file
Each
mmbit presents
40 load of 3 unit-sized
60 80 100 120
transistors
True and complementary address inputs
A[3:0]
40 input may drive 10 unit-sized
Each
transistors
Find: number of stages, sizes of gates, speed
Decoder effort is mainly electrical and branching
60
Electrical Effort: H = (32*3)/10 = 9.6
Branching Effort: B = 8
If we neglect logical effort (assume G = 1)
Path Effort: F = GBH = 76.8
80
Number of Stages: N = log4 F = 3.1
Try a 3-stage design
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 21 / 1 v
Decoder: Gate Sizes and Delay
60
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 22 / 1 v
Decoder: Comparison
mm 40 60 80 100 120
Compare many alternatives with a spreadsheet
Design N G P D
NAND4-INV 2 2 5 29.8
40
NAND2-NOR2 2 20/9 4 30.1
INV-NAND4-INV 3 2 6 22.1
NAND4-INV-INV-INV 4 2 7 21.1
NAND2-NOR2-INV-INV 4 20/9 6 20.5
60
NAND2-INV-NAND2-INV 4 16/9 6 19.7
INV-NAND2-INV-NAND2-INV 5 16/9 7 20.4
NAND2-INV-NAND2-INV-INV-INV 6 16/9 8 21.6
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 23 / 1 v
Review of Definitions
mm
Term 40 Stage 60 80 Path 100 120
Number of stages 1 N
Q
Logical effort g G= gi
40 Cout Cout−path
Electrical effort h= Cin H= Cin−path
Con−path +Cof f −path Q
Branching effort b= Con−path B= bi
Effort f = gh F = GBH
60 P
Effort delay f DF = fi
P
Parasitic delay p P = pi
P
Delay
80 d=f+p D = di = DF + P
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 24 / 1 v
Method of Logical Effort
1. Compute path effort F = GBH
2. Estimate best number of stages N = log4 F
3. mm
Sketch 40 N stages60
path with 80 100 120
1
4. Estimate least delay D = NF + PN
1
5. Determine best stage effort fˆ = F N
6. Find gate sizes Cin = gi Cfout
40
Limits of logical effort
Chicken and egg problem
Need path to compute G
60 But, don’t know number of stages without G
Simplistic delay model, neglects input rise time effects
Interconnect
Iteration required in designs with significant wires
80
Maximum speed only
Not minimum area/power for constrained delay
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 25 / 1 v
Summary of Logical Effort
mm 40 60 80 100 120
Logical effort is useful for thinking of delay in circuits
Numeric logical effort characterizes gates
NANDs are faster than NORs in CMOS
40
Paths are fastest when effort delays are ∼4
Path delay is weakly sensitive to stages, sizes
But using fewer stages doesn’t mean faster paths
Delay of path is about log4F FO4 inverter delays
60
Inverters and NAND2 best for driving large caps
Provides language for discussing fast circuits, but requires
practice to master
80
ECE Department, University of Texas at Austin Lecture 6. Logical Effort Jacob A. Abraham, September 15, 2009 26 / 1 v