S318 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 F1/N 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 N=log4⁡F, 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?

Name it

The delay of one gate

d=gh+p

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+23; n-input NOR 2n+13.
  • 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, 4+1=5τ, is the common yardstick for a process's speed.

Along a path

  • Path logical effort G=∏gi, electrical effort H=Cload/Cin, branching effort B (the product of the branching at each fork), and path effort F=GBH.
  • The delay is least when every stage bears the same effort f=F1/N, giving
D=NF1/N+P,P=∑pi
  • The best number of stages is about log4⁡F; adding inverters to a path with too few stages lowers its delay.

Sizing

Work backward from the load: each stage's input capacitance is Cin,i=giCout,if.

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
  1. Path effort. G=1×43×53×1=2.22 and with H=64: F=GH=142
  2. Stage effort. With four stages: f=1421/4=3.45
  3. Delay. The parasitics are P=1+2+2+1=6, so D=4×3.45+6=19.8τ about 4 FO4 delays.
  4. 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
  1. Number of stages. log4⁡1000=4.98 so 5 inverters.
  2. Taper. Each is larger than the last by 10001/5=3.98 giving input sizes 1, 4, 16, 63 and 251 (and the load is 1000).
  3. Delay. D=5×3.98+5=24.9τ
  4. 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
  1. Path effort. F=gH=53×20=33.3
  2. Alone. D=33.3+3=36.3τ
  3. With two inverters. They keep the polarity, and each of the three stages bears 33.31/3=3.22: D=3×3.22+3+1+1=14.7τ 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°.

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?

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.