HomeDigitalToolsInterview

CMOS Inverter VTC Lab

Adjust supply voltage, transistor sizing, and threshold voltages — watch the Voltage Transfer Characteristic, switching point VM, and noise margins update instantly.

Supply & Thresholds
VDD (V)1.20
Vtn — NMOS threshold (V)0.30
|Vtp| — PMOS threshold (V)0.30
Transistor Sizing
kn (NMOS W/L · µnCox)1.00×
kp (PMOS W/L · µpCox)1.00×
λ — Channel length mod.0.00
Operating Point Probe
Vin probe0.60
VM (switching point)
VIL (max LOW input)
VIH (min HIGH input)
NML = VIL − VOL
NMH = VOH − VIH
Vout @ probe
VTC curve
Unity gain (Vout=Vin)
VM switching point
VIL
VIH
Probe point

What is the Voltage Transfer Characteristic (VTC)?

The VTC plots DC output voltage (Vout) vs. DC input voltage (Vin) of a CMOS inverter. It reveals five operating regions, determines noise margins, and defines the switching threshold VM — the input voltage at which Vout = Vin.

Five Operating Regions

RegionVin rangeNMOS statePMOS stateVout
10 → VtnOFFLinear (deep)≈ VDD (HIGH)
2Vtn → VMSaturationLinearHigh → falling
3≈ VMSaturationSaturationSteep transition
4VM → VDD+VtpLinearSaturationLow → falling
5VDD+Vtp → VDDLinear (deep)OFF≈ 0 (LOW)

Switching Threshold VM

At VM, both transistors are in saturation. Setting IDn = IDp and Vout = Vin = VM:

VM = (VDD + Vtp + Vtn·√(kn/kp)) / (1 + √(kn/kp)) When kn = kp → VM = VDD/2 (symmetric inverter) When kn > kp → VM shifts below VDD/2 (NMOS stronger) When kp > kn → VM shifts above VDD/2 (PMOS stronger)

Noise Margins

VIL: maximum input voltage still recognized as logic LOW — the point where |dVout/dVin| = 1 on the HIGH side of the VTC.

VIH: minimum input voltage recognized as logic HIGH — where |dVout/dVin| = 1 on the LOW side.

NML = VIL − VOL (LOW noise margin, ideally = VIL since VOL ≈ 0) NMH = VOH − VIH (HIGH noise margin, ideally = VDD − VIH since VOH ≈ VDD) For symmetric CMOS: NML ≈ NMH ≈ 3VDD/8 (approximately)

Effect of W/L Ratio (kn / kp)

Increasing kn (wider NMOS or stronger NMOS process) shifts VM lower — the NMOS overpowers the PMOS earlier. In standard CMOS processes, µp ≈ µn/2, so PMOS is made 2× wider to equalize drive strength and center VM at VDD/2.

Effect of Channel Length Modulation (λ)

With λ > 0, drain current in saturation is ID = (k/2)(VGS−Vt)²(1+λVDS). This slightly raises current in saturation, compressing the flat output regions. At Region 3, both transistors remain in saturation simultaneously — with λ, the slope is slightly less steep but VM is nearly unchanged.

CMOS Inverter Advantages

Zero static power: In steady state, one transistor is always OFF → no DC path between VDD and GND. Only dynamic power (C·V²·f) during switching. Full swing: VOH = VDD, VOL = 0 (ideal). Symmetric noise margins: when properly sized. These properties made CMOS the dominant logic family from the 1980s onwards.