Explain CMOS inverter propagation delay. Model it as an RC circuit and explain how increasing transistor width reduces resistance but increases capacitance. What's the optimal fan-out?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
This is a great question about CMOS inverter propagation delay and transistor sizing. Let me break this down comprehensively.
CMOS Inverter Propagation Delay
Basic Concept
Propagation delay is the time it takes for an output to transition after an input transition. For a CMOS inverter, there are two propagation delays:
t_PLH: low-to-high transition time
t_PHL: high-to-low transition time
RC Circuit Model
The most common model treats the inverter as an RC circuit:
R: Output resistance (pull-up for PLH, pull-down for PHL)
C: Output capacitance (loading + parasitic)
For charging/discharging through an RC network with initial condition at one extreme and driven to the other:
If we have a capacitor C charging through resistor R from voltage V_DD, the voltage is:
V(t) = V_DD(1 - e^(-t/RC))
The time to reach 50% (or 63.2% for V_dd/e) is proportional to RC.
For a 10%-90% transition time (more standard):
Using V(t) = V_in + (V_final - V_in)(1 - e^(-t/RC))
At 10%: V = 0.1V_DD = 0 + V_DD(1 - e^(-t1/RC))
So: e^(-t1/RC) = 0.9, t1 = -RCln(0.9) ≈ 0.105*RC
At 90%: V = 0.9V_DD = V_DD(1 - e^(-t2/RC))
So: e^(-t2/RC) = 0.1, t2 = -RCln(0.1) ≈ 2.303*RC
The 10%-90% transition time works out to approximately 2.2RC, though propagation delay is often simplified to 0.69RC using the 50% point, or roughly 2*RC for the full 10%-90% window.
Transistor Width Effects
Resistance scales inversely with transistor width: R = 1/(k*W/L), where k is the transconductance parameter. Increasing W decreases the on-resistance proportionally, which directly reduces the RC time constant and thus propagation delay.
Capacitance, however, grows linearly with width. The gate capacitance of the next stage depends on its area (proportional to W_next), while parasitic junction and diffusion capacitances also scale with the driver's width W.
The Trade-off
Widening a transistor by factor α creates competing effects: resistance drops to R/α, but total capacitance rises to αC. The propagation delay becomes t_d' = (R/α) * (αC) = R*C, meaning the delay remains unchanged. This reveals a fundamental constraint—simply making transistors wider doesn't improve speed because the resistance gain is offset by increased capacitive loading.
The real advantage emerges when the driver charges a fixed external load. The parasitic capacitance of the driver itself scales with width, but the load capacitance remains independent of the driver's size. By increasing the driver width, we reduce its resistance while the load capacitance stays constant, allowing us to drive that fixed load faster.
In a chain of inverters, each stage's output capacitance feeds into the next stage's input. When we geometrically scale the widths (each stage roughly 4 times larger than the previous), we balance the resistance reduction against the increasing parasitic load, resulting in roughly equal delays per stage and minimizing total propagation delay.
The fan-out—the ratio of one stage's output capacitance to the next stage's input capacitance—directly impacts this delay. If a stage drives a load that's f times its own input capacitance, the propagation delay scales with that fan-out factor. There's an optimal fan-out value (typically around 4 for standard CMOS logic) that minimizes the total delay through the chain, since too small a fan-out means many stages are needed, while too large a fan-out creates excessive delay per stage. me reconsider the problem using logical effort framework.
For a path with stage effort h_i = g_i * b_i (logical effort times branching factor), the total delay is the sum of individual stage delays plus parasitic components. With N identical stages each driving a fan-out F, the delay becomes D = N * F + N * p. But I'm conflating different optimization problems here.
The key insight is that for a single inverter stage, the optimal sizing depends on how we're minimizing. When transistors within a gate can be sized independently to drive multiple loads, we need to consider the actual gate structure and what we're optimizing for—whether it's delay, power, or area.
For a chain of gates on the critical path, the logical effort framework tells us that delay is minimized when each stage has roughly equal effort. This means the branching factor at each stage should be b = e^(1/N), which typically yields values between 1.28 and 4 depending on the number of stages and parasitic delays. In practice, accounting for parasitic effects, an optimal fan-out around 4 emerges as a reasonable target for most designs.
The tradeoff is clear: increasing fan-out reduces the number of stages needed but forces each stage to drive larger loads, increasing RC delay per stage. Conversely, reducing fan-out adds more stages, which compounds the total propagation delay. The sweet spot balances these competing effects, which is why the rule of thumb settles on a fan-out of approximately 4-5 for typical CMOS circuits.
This optimal value emerges from minimizing delay across a chain of gates. When sizing stages sequentially, each stage's delay depends on the ratio of its load capacitance to its drive strength. The load includes both parasitic capacitance and the input capacitance of the next stage, which scales with transistor width. Working through the calculus—taking the derivative of delay with respect to transistor width and setting it to zero—reveals that the optimal fan-out ratio remains roughly constant across all stages in the chain, converging to that 4-5 range for practical CMOS implementations. The delay per stage balances the transistor sizing tradeoff: larger devices switch faster but add parasitic capacitance. Minimizing total delay across a chain of gates yields an optimal load factor around 4, meaning each stage should drive the next with roughly 4x the input capacitance. In practice, this varies with path depth—shorter paths tolerate f ≈ 4, while deeper pipelines benefit from f ≈ 2-3 to reduce accumulated delay.
For propagation delay, I need to consider the RC charging model. An inverter's output transitions through its pull-up or pull-down transistor into the load capacitance. The 50% transition time follows t ≈ 0.69 * R * C, where R is the transistor resistance and C combines the load and parasitic capacitances. This relationship shows why transistor sizing directly impacts switching speed—larger transistors reduce R but increase parasitic C, creating the fundamental tension in gate design.
When scaling transistor width by a factor α, the resistance drops proportionally (R → R/α) while parasitic capacitance grows (C → α*C). The net effect on delay depends on what the transistor drives.
For a fixed external load C_L that dominates, delay scales inversely with α—wider transistors are faster. However, when parasitic capacitance dominates the total capacitance, the resistance reduction is exactly canceled by the increased capacitance, leaving delay unchanged regardless of scaling. This parasitic effect fundamentally limits how much we can improve performance through width scaling alone.
CMOS Inverter Propagation Delay
RC Circuit Model
The propagation delay is modeled as charging/discharging an RC network:
td≈0.69⋅R⋅C
For a 10%-90% transition: td≈2.2⋅R⋅C
Where:
R = output resistance of transistor
C = total output capacitance (parasitic + load)
Two Paths:
Transition
Path
Driver
0→1 (PLH)
Charge through pull-up
PMOS: Rp
1→0 (PHL)
Discharge through pull-down
NMOS: Rn
The Width Scaling Paradox
Resistance Scaling ✓ (Good)
For a transistor:
R=μ⋅Cox⋅(W/L)
Increasing W by factor α:R′=αR(resistance decreases)
Capacitance Scaling ✗ (Bad)
Output capacitance has two components:
code
C_total = C_parasitic + C_load
C_parasitic = C_junction + C_diffusion + C_overlap
∝ W (scales with transistor size)
C_load = depends on next stage (may be independent)
Increasing W by factor α:C′=α⋅Cd+C
The Cancellation Effect
If we scale only the driver (not considering load):
td′=αR
Parasitic effects cancel the resistance benefit! 🔄
When Width Scaling Helps
Width reduction only helps when driving a substantial external load:
Ctotal=Cp+C
Where CL dominates (next stage input gates):
td=0.69⋅αR⋅
Example:
Inverter with 5 FO4 load (fan-out of 4): Width helps significantly
Inverter driving only its own parasitic: Width scaling shows diminishing returns
Optimal Fan-Out Using Logical Effort
The Effort Equation
For a single stage with load:
Effort=(electrical effort)+(parasitic)ei
For a chain of N stages with equal fan-out f:
ttotal=N⋅τ⋅(f+p)
Where p ≈ 1 is the parasitic delay factor (normalized).
Derivation of Optimal f
Minimizing per-stage delay by varying stage fan-out:
dfd[f+p]=1(always positive)
But for a fixed path with multiple stages:
ttotal=N(f)×(f+p)×
Where N decreases as f increases (fewer stages needed).
Optimization yields:
foptimal≈4−5
This can be derived from: dfd[N(f)⋅(f+p)]=
Physical Intuition
Factor
Effect
f too high (f > 8)
Each stage drives huge load; delay increases exponentially
f too low (f < 2)
Many intermediate stages needed; cumulative parasitic delay dominates
f ≈ 4
Sweet spot balances load-drive delay vs. number of stages
Practical Guidelines
Sizing Strategy
code
For a path from input to output:
Stage 0 (input): W = W_min
Stage 1: W = 4 × W_0 (fan-out = 4)
Stage 2: W = 4 × W_1
Stage 3: W = 4 × W_2 ← Optimal for 3-4 stages
When to Deviate
Scenario
Adjustment
Deep pipeline (8+ stages)
Use f = 2-3
Single critical gate
Use f = 4-5
Power-constrained
Use f = 3 (reduces dynamic power)
Area-constrained
Use f = 5-6 (fewer larger gates)
Summary Table
Factor
Impact
Scaling Law
Increase W
↓ Resistance
R∝1/W
Increase W
↑ Parasitic C
Cp∝W
Drive external load
↓↓ Delay
(load-dominated)
The key insight: Width helps when driving substantial loads, not when fighting parasitic capacitance.