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

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?

Name it

The delay of one gate

In units of τ (the delay of an ideal inverter driving an identical one, without parasitics),

d=gh+p,
  • logical effort g: how much more input capacitance the gate needs than an inverter to deliver the same current. Inverter 1, NAND2 43, NOR2 53, in general n+23 for an n-input NAND and 2n+13 for a NOR;
  • electrical effort h=CoutCin: 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

F=GBH,G=∏gi,H=CoutCin,

with B the product of any branching (fanout to other paths). The delay is least when every stage bears the same effort f=F1/N, and then

D=NF1/N+∑pi.

The best number of stages is near log4⁡F, where each stage's effort is about 4. To size the gates, work backward from the load: each gate's input capacitance is Cin=gCoutf.

Worked example

Size a three-inverter chain to drive a load 64 times the first inverter's input. What delay results?

Show the solution
  1. Stage effort. F = H = 64, so f=641/3=4
  2. Size backward from the load. Working back from the load of 64, the last inverter's input is 644 = 16, the middle one's 164 = 4, and the first is 1.
  3. Delay. D=3×4+3×1=15τ against 65τ for one inverter.
  4. 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
  1. Path effort. G=43×53×1=209F=209×20=44.4
  2. Stage effort. f=44.41/3=3.54
  3. Least delay. The parasitic delays are 2 + 2 + 1, so D=3×3.54+5=15.6τ
  4. Size backward. The inverter's input and then the NOR2's are Cinv=1×203.54=5.65CNOR=5/3×5.653.54=2.66
  5. 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
  1. Best number of stages. log4⁡1000=4.98 so 5 stages.
  2. Delay with five stages. With inverters, p = 1 each: D=5×10001/5+5=24.9τ
  3. Delay with six. Six stages give 25.0τ, nearly the same: the optimum is flat.
  4. Delay with three. D=3×10+3=33τ 33% slower.
  5. 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°.

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?

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.