C7 · Lesson 9 · Logical effort
Sizing a chain of gates for the least delay
A small gate can't drive a large load quickly, and a large gate is itself a large load for whatever drives it. So how big should each gate in a path be, and how many gates should the path have? The method of logical effort answers both with a few multiplications, and its answers are surprising: driving a big load fastest usually means adding inverters, and every stage should carry about the same effort, near four.
Play
- The curve is the delay of a chain of N inverters driving a load H times bigger than the first inverter's input, in units of a fixed inverter delay τ, with each stage sized to share the effort equally.
- One inverter driving the whole load is slow. Add stages: the delay falls, then rises again.
- Change H and watch where the minimum moves. It sits near the N that makes each stage's effort about 4.
Predict
An inverter must drive a load 64 times its own input capacitance. Which is faster: one inverter, or three in a chain sized 1, 4 and 16?
Three, about four times faster. One inverter has an electrical effort of 64, so its delay is 64 + 1 = 65τ. Three stages each drive a load four times their input: 3 × (4 + 1) = 15τ. Spreading the effort over stages turns a product into a sum, and with a large load that's a big win.
Name it
The delay of one gate
In units of τ (the delay of an ideal inverter driving an identical one, without parasitics),
- logical effort g: how much more input capacitance the gate needs than an inverter to deliver the same current. Inverter 1, NAND2 , NOR2 , in general for an n-input NAND and for a NOR;
- electrical effort : the load relative to the gate's own input;
- parasitic delay p: the gate's own capacitance, 1 for an inverter, about n for an n-input NAND or NOR.
An inverter driving four copies of itself, the fanout-of-4 (FO4) delay, takes 4 + 1 = 5τ, a common yardstick for a process's speed.
A path
For N gates in a row, the path effort is
with B the product of any branching (fanout to other paths). The delay is least when every stage bears the same effort , and then
The best number of stages is near , where each stage's effort is about 4. To size the gates, work backward from the load: each gate's input capacitance is .
Worked example
Size a three-inverter chain to drive a load 64 times the first inverter's input. What delay results?
Show the solution
- Stage effort. F = H = 64, so
- Size backward from the load. Working back from the load of 64, the last inverter's input is = 16, the middle one's = 4, and the first is 1.
- Delay. against 65τ for one inverter.
- In picoseconds. With τ = 5 ps that's 75 ps instead of 325 ps.
Answer input sizes of 1, 4 and 16 give a delay of 15τ (75 ps at τ = 5 ps), against 65τ for one inverter.
Worked example
A path is a NAND2, then a NOR2, then an inverter driving a load 20 times the NAND2's input. Find the least delay and the gate sizes.
Show the solution
- Path effort.
- Stage effort.
- Least delay. The parasitic delays are 2 + 2 + 1, so
- Size backward. The inverter's input and then the NOR2's are
- Check. The NAND2's comes out at 1.00, the input we started with, which checks the arithmetic.
Answer the least delay is 15.6τ, with inputs of 1 for the NAND2, 2.66 for the NOR2 and 5.65 for the inverter.
Worked example
A path effort of 1000 must be driven. How many stages are best, and how much does using 3 instead cost?
Show the solution
- Best number of stages. so 5 stages.
- Delay with five stages. With inverters, p = 1 each:
- Delay with six. Six stages give 25.0τ, nearly the same: the optimum is flat.
- Delay with three. 33% slower.
- What that says. Adding inverters to a path is cheap when they buy that much.
Answer 5 stages, for 24.9τ; using 3 gives 33τ, 33% slower.
Check
A gate with logical effort 1.333 and parasitic delay 2 drives a load 2 times its input.
(a)
What's its delay, in τ?
(b)
In picoseconds, with τ = 5 ps?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A chain of N = 2 inverters drives a load 100 times the first one's input.
(a)
What effort should each stage bear?
(b)
What's the total delay, in τ?
Check
About how many stages minimize the delay of a path with effort 64?
Check
Gates with n = 3 inputs.
(a)
What's an n-input NAND's logical effort?
(b)
And a NOR's?
Check
A path has logical effort G, branching B, electrical effort H and N stages with total parasitic delay P.
Step 1
What's the path effort?
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's the best stage effort?
Step 3
What's the least delay?
Check
Write size_path(gs, ps, H) returning (D, f, cins) for a path of gates with logical efforts gs and parasitics ps, driving a load H times the first gate's input (no branching): the least delay, the stage effort, and each gate's input capacitance from first to last (the first is 1).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does adding inverters to a path that drives a large load make it faster?
A gate's delay grows in proportion to the load it drives relative to its own size. One small gate driving a huge load has an enormous electrical effort, and its delay is that whole ratio. Splitting the job among several stages, each a few times larger than the one before, means each stage faces only a modest ratio, and the delays add instead of the ratio being borne by one gate. Because the efforts multiply to the same total while the delays add, the sum is smallest when the stages share the effort equally, and each extra stage costs only its own small parasitic delay. The best number of stages makes each stage's effort about four.
Practice
Keep practicing
6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.