S3 · Lesson 18 · Logical effort and gate sizing
Estimating CMOS path delay and choosing the number and size of stages
How fast can a chain of gates drive a large load, and how big should each gate be? The method of logical effort answers both with a few multiplications. Every gate's delay is its effort, how much worse it is at driving than an inverter, times its electrical fanout, plus a fixed parasitic part. Along a path, the delay is smallest when every stage bears the same effort, about 4, which tells a designer how many stages to use and how to size each one. It's how a buffer chain to a big clock net gets designed, and why a high-fanin NOR gate is avoided in fast paths.
- The delay of a path whose total effort is F, in units of τ (the delay of an ideal inverter with no parasitics), against the number of stages N, when every stage bears effort and adds one unit of parasitic delay.
- Too few stages and each must drive an enormous fanout; too many and the parasitic delays add up. The minimum sits near , where each stage has effort about 4.
- Raise F: the best N grows as its logarithm, so a 1000× load needs only five stages.
Predict
A small gate must drive a load 1000 times its input capacitance through a chain of inverters. About how many inverters give the least delay?
About five. The best stage effort is about 4, so the number of stages is ≈ 5, each inverter about four times the size of the one before. A single inverter would have a stage effort of 1000 and a delay near 1000τ; five stages give about 25τ. Real designs pick an integer near , and the delay is flat enough around the minimum that 4 or 6 stages cost only a few percent more.
Name it
The delay of one gate
in units of τ, where:
- g, the logical effort: how much more input capacitance the gate needs than an inverter to deliver the same output current. Inverter 1; n-input NAND ; n-input NOR .
- h, the electrical effort: output capacitance over input capacitance.
- p, the parasitic delay: about 1 for an inverter, about n for an n-input NAND or NOR.
The fanout-of-4 (FO4) inverter delay, , is the common yardstick for a process's speed.
Along a path
- Path logical effort , electrical effort , branching effort B (the product of the branching at each fork), and path effort .
- The delay is least when every stage bears the same effort , giving
- The best number of stages is about ; adding inverters to a path with too few stages lowers its delay.
Sizing
Work backward from the load: each stage's input capacitance is .
What it tells a designer
- High-fanin gates are slow: a 4-input NOR has g = 3, three times an inverter.
- NAND beats NOR in CMOS because holes are slower than electrons.
- A big load should be driven through a tapered chain of gates: a single huge gate would load its own driver just as badly.
Worked example
A path is an inverter, a 2-input NAND, a 2-input NOR and an inverter, driving 64 times the first gate's input capacitance with no branching. What's its least delay, and its stage effort?
Show the solution
- Path effort. and with :
- Stage effort. With four stages:
- Delay. The parasitics are , so about 4 FO4 delays.
- Check the stage count. Each stage's effort, 3.45, is close to the ideal 4, so four stages is about right.
Answer the least delay is 19.8τ (about 4 FO4), with a stage effort of 3.45.
Worked example
Design a buffer chain to drive a load 1000 times the input capacitance. How many inverters, what taper, and what delay?
Show the solution
- Number of stages. so 5 inverters.
- Taper. Each is larger than the last by giving input sizes 1, 4, 16, 63 and 251 (and the load is 1000).
- Delay.
- Against one big inverter. A single inverter sized to drive the load from the same input would take about 1001τ.
Answer 5 inverters with a taper of 3.98, for a delay of 24.9τ.
Worked example
A 3-input NAND drives 20 times its own input capacitance. What is its delay alone, and with two inverters added after it?
Show the solution
- Path effort.
- Alone.
- With two inverters. They keep the polarity, and each of the three stages bears : More than twice as fast, by adding gates.
Answer 36.3τ alone and 14.7τ with two inverters added.
Check
What's the logical effort of a 3-input NAND gate?
Check
What's the logical effort of a 3-input NOR gate?
Check
A gate with logical effort 1.33, electrical effort 2 and parasitic delay 2: what's its delay in τ?
Check
A path has effort F = 1000. What's the best number of stages?
Check
A path with effort 500 and parasitic delay 8 is built with 3 stages. What's its least delay, in τ?
Check
A path has logical effort 2.22, branching effort 1 and electrical effort 100. What's its path effort?
Check
A stage with logical effort 1.67 drives 20 fF at a stage effort of 4. What should its input capacitance be?
Write units the way you normally would: 1.5 fF and 0.0015 pF are the same answer.
Check
A 3-input gate drives 1 times its own input capacitance.
(a)
What delay does a NAND have?
(b)
And a NOR?
Check
A path has path effort F, N stages and total parasitic delay P.
Step 1
What effort should each stage bear?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the path's least delay?
Step 3
About how many stages minimize it?
Check
Write path_delay(g, p, H, B=1.0): for a path whose stages have logical efforts g and parasitic delays p, electrical effort H and branching B, return (least delay D in τ, stage effort f, input capacitances of the stages relative to the first, working back from the load).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why is a path fastest when every stage bears the same effort?
The delay of a path is the sum of each stage's effort delay plus fixed parasitic delays, and the product of the stage efforts is fixed by the path's logic, branching and load. A sum of positive numbers with a fixed product is smallest when the numbers are all equal, the same reason a rectangle of fixed area has the least perimeter when it's a square. If one stage bore more effort than the others, shrinking it slightly and enlarging its neighbors would lower that stage's delay by more than it raised theirs. So the optimum sizes every gate so that each stage carries , and the best N then balances effort delay against the parasitic delay each stage adds.
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.