The CMOS inverter is the hydrogen atom of digital design. Master it and the rest follows.
5.1 DC transfer characteristic
Sweep from 0 to and measure :
V_out
^
V_DD ─┐
│\
│ \
│ \
│ \
│ \
│ \
│ \________
GND ─┘──────────── V_in
0 V_M V_DDThe S-shaped curve has five regions:
- : NMOS off, PMOS in linear. .
- : NMOS in saturation, PMOS in linear. dropping but still high.
- : both saturated. Output transitions sharply.
- : NMOS linear, PMOS saturation. low.
- : PMOS off, NMOS linear. .
5.2 Switching threshold
The switching threshold is where . Setting NMOS and PMOS currents equal in saturation:
Set and you find that you need PMOS to be ~2 to 2.5x wider than NMOS to compensate for the lower hole mobility. This is the classic "2:1 P:N ratio" rule of thumb.
5.3 Noise margins
The high noise margin is how much noise on a 1-input the inverter can absorb without flipping its output:
where and are the input voltages at which the gain of the inverter equals -1. For a balanced CMOS inverter at V, both noise margins are typically around 0.4 V. Compare this to nMOS, where does not even reach 0; CMOS has clean 0/1 levels and that translates to far better noise immunity.
5.4 Propagation delay
The propagation delay is the time from a 50 percent input transition to a 50 percent output transition. For an inverter driving a load :
Average propagation delay . The "" here is an effective drive current that designers approximate by integrating the actual saturation/linear behavior, but the scaling intuition is:
- Larger → slower.
- Larger → faster (but quadratic dynamic power penalty).
- Larger (stronger drive) → faster, but you also load the previous stage more.
5.5 Dynamic power, derived
When a CMOS gate's output rises from 0 to , energy from the supply moves through the PMOS into the load capacitance . The total energy drawn from the supply is , of which half () ends up stored on the capacitor and half is dissipated in the PMOS resistance.
When the output falls back to 0, the stored energy on the capacitor dissipates through the NMOS. The supply does not sink the energy back; it just sat there during the fall.
So per full cycle (rise + fall) the energy dissipated is . If the gate switches at frequency , the dynamic power is
where is the switching activity factor, the probability that the gate switches per clock cycle (typical values are 0.1 to 0.3). This is the most important formula in digital power. The quadratic dependence on is why lowering supply voltage is the single biggest lever for low-power design. The linear dependence on is why we clock-gate unused parts of a chip.
5.6 Short-circuit power
During the brief transition window when both NMOS and PMOS are partially on, a short-circuit current spikes from to GND. This is typically 5 to 10 percent of dynamic power for normal slew rates; it grows if input transitions are slow. Buffer chains mitigate this by keeping slews fast.
5.7 Leakage power
, with dominated by subthreshold conduction at modern nodes. On a 7 nm chip this can be tens of percent of total power even when "idle."
5.8 Putting it together
The total power on a real chip is the sum across millions of gates of these three terms. Most of the action in low-power design is making each term as small as possible without breaking timing.