The idea: a gate is a resistor charging capacitors

When a CMOS gate switches, one of its transistors turns on and acts like a resistor, R_on. Through it the gate charges (or empties) every capacitor on its output: its own drains, the wire, and the inputs of the gates it drives. The more capacitance and the more resistance, the slower the gate. A big gate has wide transistors, so a small R_on, but it also has a big input capacitance that the gate before it must charge. Gate sizing is choosing the widths so that the whole path is fast, and logical effort is a pencil-and-paper method for it.

Top: an inverter as R_on = 10 kΩ charging 8 fF, delay 0.69 × 80 ps = 55.2 ps. Bottom: the same wire as 3 segments of 1 kΩ and 2 fF; each capacitor is multiplied by the resistance between it and the source: 10 × 1 + 11 × 2 + 12 × 2 + 13 × 2 + 13 × 1 = 95 ps, delay 0.69 × 95 = 65.55 ps
One gate is R_on charging C; on a resistive wire, each capacitor counts with the resistance on its own path to the source.

The page has three parts: one gate with its load (panel 1), a path of three gates driving a big load (panel 2), and the path effort with the best number of stages (the panel on the right). How a capacitor charges through a resistor, with its exponential curve, is on RC Circuit; what the gates compute is on Combinational Logic.

The RC model of one gate

The page uses a unit inverter with R_on = 10 kΩ and an input capacitance C_in = 1 fF. Its own drains add C_par = 1 fF to its output. It drives a wire of 6 fF and one gate input of 1 fF, so it must charge C = 1 + 6 + 1 = 8 fF. The output crosses half of VDD at

t = ln 2 × RC ≈ 0.69 × 10 kΩ × 8 fF = 0.69 × 80 ps = 55.2 ps.

(kΩ times fF is ps.) The wire alone loads the inverter like six more gate inputs. (Demo: an inverter as an RC.)

Elmore delay of a wire

A long wire also has resistance. Cut it into segments: here 3 segments, each 1 kΩ and 2 fF. Now the capacitors far down the wire charge through more resistance than the near ones. The Elmore delay adds, for each capacitor, its capacitance times the resistance between it and the source:

CapacitorCR to the sourceR × C
C_par (driver drain)1 fFR_on = 10 kΩ10 ps
C12 fF10 + 1 = 11 kΩ22 ps
C22 fF12 kΩ24 ps
C32 fF13 kΩ26 ps
C_load (next gate)1 fF13 kΩ13 ps
Sum8 fF95 ps

The delay is 0.69 × 95 = 65.55 ps. Two shortcuts are wrong in opposite ways: ignoring the wire resistance gives 55.2 ps (too fast), and putting all the resistance in front of all the capacitance gives 0.69 × 13 × 8 = 71.76 ps (too slow). (Demo: Elmore delay of a 3-segment wire.) The wire's delay grows with the square of its length, because both its R and its C grow with length. That is why long wires get repeaters.

FO4 and the delay unit τ

Logical effort counts delay in a unit τ: the delay of an inverter driving one copy of itself, without its own parasitic. Here τ = 0.69 × R_on × C_in = 0.69 × 10 × 1 = 6.9 ps. An inverter driving four copies of itself charges 1 + 4 = 5 fF, so its delay is 0.69 × 10 × 5 = 34.5 ps = 5τ. This FO4 delay (fan-out of 4) is how designers compare processes: a path "20 FO4 long" is about 690 ps here, whatever the technology. (Demo: FO4, the delay unit.)

Logical effort, electrical effort, parasitic delay

The delay of one gate, in τ, is

d = g·h + p

  • h = C_out / C_in, the electrical effort: how much bigger the load is than the gate's own input.
  • g, the logical effort: how much more input capacitance the gate needs than an inverter to drive the same current. It depends only on the kind of gate.
  • p, the parasitic delay: the delay of charging its own drains, the same at any size.

g·h is the stage effort f. Take a unit inverter with pMOS width 2 and nMOS width 1 (holes are slower), so C_in = 3 units. A NAND2 has two nMOS in series: each must be twice as wide (2) to keep the same resistance, plus pMOS of width 2, so each input is 4 units: g = 4/3. A NOR2 has two pMOS in series of width 4 each, plus nMOS of width 1: 5 units, g = 5/3.

GateLogical effort gParasitic delay pWhy
INV11the reference
NAND24/322 nMOS in series
NOR25/322 pMOS in series (slow holes)

This is the same straight line as the cell delay p + k·load on Technology Mapping: k there is g divided by the gate's size.

Sizing a path: equal effort per stage

The path is INV → NAND2 → NOR2. Its input is fixed at C_in = 1 and it drives C_out = 64. Leave every gate at C_in = 1 and the NOR2 alone drives the load: h = 64, d = 5/3 × 64 + 2 = 108.67τ. The whole path takes 2 + 3.33 + 108.67 = 114τ = 786.6 ps. (Demo: unsized path.)

Logical effort sizes the path in four steps:

  1. Path logical effort G = product of the g's = 1 × 4/3 × 5/3 = 2.22.
  2. Path electrical effort H = C_out / C_in = 64; branching effort B = 1 (no gate on the path drives a side branch).
  3. Path effort F = G·B·H = 142.22. It does not depend on the sizes in between. The product of the stage efforts is always F, and their sum is smallest when they are all equal: f̂ = F^(1/N) = 142.22^(1/3) = 5.22.
  4. Work back from the load: each gate gets C_in = g × C_out / f̂. NOR2: 5/3 × 64 / 5.22 = 20.43. NAND2: 4/3 × 20.43 / 5.22 = 5.22. INV: 1 × 5.22 / 5.22 = 1, the input we started from, which checks the arithmetic.

The path delay is D = N·f̂ + P = 3 × 5.22 + (1 + 2 + 2) = 20.66τ = 142.6 ps. (Demo: size for equal stage effort.)

Two stacked bars for INV, NAND2, NOR2 driving 64. Unsized, all C_in = 1: stage delays 2, 3.33 and 108.67, total 114τ. Sized, C_in = 1, 5.22 and 20.43: stage delays 6.22, 7.22 and 7.22, total 20.66τ, 5.5 times faster
Same input load, same output load: spreading the effort evenly makes the path 5.5× faster.
Load C_outFf̂Sized DUnsized D
1635.563.2914.86τ34τ
64142.225.2220.66τ114τ
256568.898.2929.86τ434τ

How many stages?

Adding inverters at the end does not change F (an inverter has g = 1), but each adds p = 1. So D(N) = N · F^(1/N) + P. Too few stages and each works too hard; too many and the parasitic delays pile up. The best stage effort is about 4 (3.59 with p_INV = 1), so the best N is about log₄ F.

Path delay D against the number of stages N from 3 to 6. For H = 64: 20.66, 19.81, 20.48, 21.71, lowest at N = 4. For H = 256: 29.86, 25.54, 24.78, 25.27, lowest at N = 5
The curve is flat near its bottom: one stage more or less than the best costs only a few percent.

For H = 64, F = 142.22 and log₄ F = 3.58. N = 4 is fastest at 19.81τ, but one extra inverter flips the output, so the logic would have to change. Two inverters (N = 5) give 20.48τ, under 1% better than the three gates: the plain path is already about right. (Demo: how many stages for H = 64.) For H = 256, F = 568.89 and two extra inverters cut the delay from 29.86τ to 24.78τ. (Demo: heavy load H = 256.)

Where sizing is used

Synthesis tools size gates with the same idea, using delay tables instead of the straight line. When static timing analysis finds negative slack, upsizing a NOR2 on the critical path fixes it, and on the ASIC design flow repair_timing upsizes cells after routing. The transistor widths chosen here are what the layout then draws, and CMOS layout, DRC and LVS check them. How a transistor works as a switch is on Transistor Switch.

See also CMOS Layout, DRC and LVS, where the inverter's W and L are drawn as active and poly shapes on a λ grid.

See also Standard-Cell Place and Route, which shows how the sized cells are placed in rows and wired together.

What the page leaves out

  • Real transistors are not linear resistors; rise and fall delays differ, and the input slope changes the delay. Cell libraries store delay tables indexed by input slew and output load.
  • Branching (B > 1), wires between the gates of the path and gates with more inputs (NAND3, AOI) follow the same method but are not shown.
  • Sizes come out as real numbers; a library has only a few sizes, so tools round them, and they also weigh area and power.
  • The π model of a wire, repeater insertion and higher-order models beyond Elmore are left out.

On the mind map

Open the Computer Architecture mind mapComputerArchitectureAbstraction and numbers: layers and bit patternsAbstraction and numbersCombinational logic: output depends only on inputsCombinational logicSequential logic: state held by a clockSequential logicMIPS software: how C becomes machine wordsMIPS softwareThe processor: datapath plus controlThe processorPipelines and parallelism: more instructions at oncePipelines and parallelismMemory and I/O: small fast near, big slow farMemory and I/OLatches and flip-flopsLatches and flip-flopslatch is level, flip-flop is edgeFlip-flops and counter designFlip-flops and counter designexcitation = characteristic backwardsLatch from transistorsLatch from transistorstransmission gates plus inverter loopCMOS layout, DRC, LVSCMOS layout, DRC, LVSDRC: can it be built? LVS: right circuit?Timing analysisTiming analysissetup limits clock, hold limits short pathsAsync FIFO (CDC)Async FIFO (CDC)Gray pointers cross; flags clear lateStuck-at fault testingStuck-at fault testingActivate, propagate, justify: D-algorithmStatic Timing AnalysisStatic Timing AnalysisSlack = required − arrival, every nodeLogical effort sizingd = gh + p; equal effort F^(1/N)Scan chainsScan chainsShift in, capture once, shift outFinite state machinesFinite state machinesMoore: output from state; Mealy: +inputsASMD chart and datapathASMD chart and datapathTransfers land at the edge leaving the state1011 Sequence Detector1011 Sequence DetectorA wrong bit keeps the longest prefixFSM in SystemVerilogFSM in SystemVerilogenum, always_ff, always_comb; default!Shift registers and countersShift registers and countersChained flip-flops shift or count each clockOpen the Computer Architecture mind mapComputer Architecturestate held by a clockSequential logicLatches and flip-flopsLatches and flip-flopslatch is level, flip-flop is edgeFlip-flops and counter designFlip-flops and counter designexcitation = characteristic backwardsLatch from transistorsLatch from transistorstransmission gates plus inverter loopCMOS layout, DRC, LVSCMOS layout, DRC, LVSDRC: can it be built? LVS: right circuit?Timing analysisTiming analysissetup limits clock, hold limits short pathsAsync FIFO (CDC)Async FIFO (CDC)Gray pointers cross; flags clear lateStuck-at fault testingStuck-at fault testingActivate, propagate, justify: D-algorithmStatic Timing AnalysisStatic Timing AnalysisSlack = required − arrival, every nodeLogical effort sizingd = gh + p; equal effort F^(1/N)Scan chainsScan chainsShift in, capture once, shift outFinite state machinesFinite state machinesMoore: output from state; Mealy: +inputsASMD chart and datapathASMD chart and datapathTransfers land at the edge leaving the state1011 Sequence Detector1011 Sequence DetectorA wrong bit keeps the longest prefixFSM in SystemVerilogFSM in SystemVerilogenum, always_ff, always_comb; default!Shift registers and countersShift registers and countersChained flip-flops shift or count each clock
This page on the Computer Architecture mind map · 76 pages in 7 branches · open it to see the whole map and test yourself in recall mode.