Electronics · 2 min read

The CMOS Inverter's Switching Threshold, Derived Step by Step

Derive the switching threshold of a CMOS inverter from the square-law model, and see how transistor sizing moves it.

The CMOS inverter is the “hello world” of digital electronics. One of its most useful numbers is the switching threshold \(V_M\): the input voltage at which the output equals the input.

Setting up the problem

At \(V_{in} = V_{out} = V_M\), both transistors are in saturation and carry the same current. Using the long-channel square-law model:

\[I_{Dn} = \frac{k_n}{2}\,(V_M - V_{Tn})^2 \qquad I_{Dp} = \frac{k_p}{2}\,(V_{DD} - V_M - \lvert V_{Tp}\rvert)^2\]

where \(k = \mu C_{ox} \tfrac{W}{L}\).

Solving for \(V_M\)

Set \(I_{Dn} = I_{Dp}\) and take square roots:

\[\sqrt{k_n}\,(V_M - V_{Tn}) = \sqrt{k_p}\,(V_{DD} - V_M - \lvert V_{Tp}\rvert)\]

Define \(r = \sqrt{k_p / k_n}\) and solve:

\[V_M = \frac{V_{Tn} + r\,(V_{DD} - \lvert V_{Tp}\rvert)}{1 + r}\]

What this tells a designer

  • If \(r = 1\) and \(V_{Tn} = \lvert V_{Tp}\rvert\), then \(V_M = V_{DD}/2\): a symmetric inverter.
  • Because hole mobility is roughly 2 to 3 times lower than electron mobility, you need a wider PMOS (\(W_p \approx 2\text{–}3\,W_n\)) to get \(r = 1\).
  • Making the PMOS stronger raises \(V_M\); making the NMOS stronger lowers it.

Quick numerical check

With \(V_{DD} = 1.8\) V, \(V_{Tn} = \lvert V_{Tp}\rvert = 0.45\) V and \(r = 0.8\):

\[V_M = \frac{0.45 + 0.8\,(1.8 - 0.45)}{1.8} = \frac{1.53}{1.8} \approx 0.85\ \text{V}\]

Slightly below mid-rail, as expected for a weaker PMOS.

A quick SPICE sanity check

* CMOS inverter DC sweep
.include models.lib
VDD vdd 0 1.8
VIN in  0 0
MP  out in vdd vdd pmos W=2u L=0.18u
MN  out in 0   0   nmos W=1u L=0.18u
.dc VIN 0 1.8 0.01
.end

Plot V(out) against V(in) and find where the curve crosses the line \(V_{out} = V_{in}\). In short-channel processes velocity saturation shifts \(V_M\) away from the square-law estimate, which is exactly why we simulate.

#cmos#analog#inverter#device-physics