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.
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:
| Capacitor | C | R to the source | R × C |
|---|---|---|---|
| C_par (driver drain) | 1 fF | R_on = 10 kΩ | 10 ps |
| C1 | 2 fF | 10 + 1 = 11 kΩ | 22 ps |
| C2 | 2 fF | 12 kΩ | 24 ps |
| C3 | 2 fF | 13 kΩ | 26 ps |
| C_load (next gate) | 1 fF | 13 kΩ | 13 ps |
| Sum | 8 fF | 95 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.
| Gate | Logical effort g | Parasitic delay p | Why |
|---|---|---|---|
| INV | 1 | 1 | the reference |
| NAND2 | 4/3 | 2 | 2 nMOS in series |
| NOR2 | 5/3 | 2 | 2 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:
- Path logical effort G = product of the g's = 1 × 4/3 × 5/3 = 2.22.
- Path electrical effort H = C_out / C_in = 64; branching effort B = 1 (no gate on the path drives a side branch).
- 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.
- 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.)
| Load C_out | F | f̂ | Sized D | Unsized D |
|---|---|---|---|---|
| 16 | 35.56 | 3.29 | 14.86τ | 34τ |
| 64 | 142.22 | 5.22 | 20.66τ | 114τ |
| 256 | 568.89 | 8.29 | 29.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.
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
References
Ivan Sutherland, Bob Sproull and David Harris, Logical Effort: Designing Fast CMOS Circuits, Morgan Kaufmann, 1999: g, h, p, F = GBH, best stage effort and number of stages
Neil Weste and David Harris, CMOS VLSI Design: A Circuits and Systems Perspective, 4th ed., chapter 4 (delay: RC model, Elmore delay, logical effort)
W. C. Elmore, "The transient response of damped linear networks with particular regard to wideband amplifiers", Journal of Applied Physics 19, 55 (1948)