VLSI_Toolkit

Interactive chip-design tools for beginners

Number conversion, MOSFET, RISC-V, pipeline, timing and FSM tools for chip design. Free, and it all runs in your browser.

Buy us a chai
Word width

CMOS Inverter Calculator

Model Same MOSFET model as the MOSFET tool. Transfer curves are checked against an independent square-law solver and switching delays against the textbook closed-form result on random inverters, every night. For learning and hand calculations; confirm sign-off numbers with SPICE.

Inverter

Load and input

CL = γ·Cin + fanout·Cin + wire, with γ = 1 for the inverter's own drain capacitance. FO4 (fanout 4) is the standard delay yardstick.

Voltage transfer curve

VIL and VIH are where the slope is −1; NML = VIL − VOL and NMH = VOH − VIH. Faint curves show the same inverter with Wp/Wn = 0.5, 1, 4 and 8: a wider PMOS pulls VM up. Electron mobility is higher, so a symmetric inverter needs a PMOS about µn/µp times wider.

Switching delay

Vin switches, the transistors charge and discharge CL, and Vout follows. Simulated with the same MOSFET model as the curves, step by step in time.

tpHL: Vin crosses VDD/2 going up until Vout crosses VDD/2 going down (the NMOS discharges CL). tpLH is the rising output, set by the PMOS. Rise and fall times are 10 % to 90 %. Hand estimate: tp ≈ 0.69·Req·CL, Req = ¾·VDD / Ion.

Delay against Wp / Wn

Same Wn, load made of copies of this inverter. A wider PMOS speeds up the rising edge but adds input capacitance, so the average tp has a minimum, usually below the Wp/Wn that gives VM = VDD/2.

Inverter notes

The five regions of the VTC
  1. Vin < Vtn: NMOS off, PMOS in triode. Vout = VDD.
  2. Vtn < Vin < VM: NMOS saturated, PMOS in triode. Vout starts to fall; VIL sits here.
  3. Vin = VM: both saturated. The gain is highest (set by gm/gds), the curve is almost vertical and the most current flows.
  4. VM < Vin < VDD − |Vtp|: NMOS in triode, PMOS saturated; VIH sits here.
  5. Vin > VDD − |Vtp|: PMOS off. Vout = 0.
Switching threshold VM

With the square law and λ = 0, setting In = Ip with both saturated gives

VM = (Vtn + r·(VDD − |Vtp|)) / (1 + r), with r = √(βp / βn) = √(µp·Wp / (µn·Wn)) (same L).

For VM = VDD/2 with Vtn = |Vtp| you need βp = βn, so Wp / Wn = µn / µp, about 2 to 3.

Propagation delay by hand

The output node is a capacitor CL charged through the PMOS and discharged through the NMOS. Replacing the switching transistor by an average resistance gives tp = 0.69·Req·CL (0.69 = ln 2, the time an RC takes to reach half way).

A closer square-law result for a step input (other transistor off): tpHL = CL / (βn(VDD − Vtn)) · [2Vtn / (VDD − Vtn) + ln(4(VDD − Vtn)/VDD − 1)]. The first term is the time in saturation, the second the time in triode down to VDD/2. The simulation matches it when λ = 0.

Ways to make an inverter faster: smaller CL (less fanout and wire), wider transistors (more current, but more input capacitance for the stage before), higher VDD (more current, but power rises as VDD²).

Power

Each full output cycle takes CL·VDD² from the supply: half is stored on CL and dumped to ground on the falling edge, half is burnt in the PMOS while charging. Dynamic power P = α·CL·VDD²·f, with α the fraction of cycles that switch (1 here, a clock).

While the input is between Vtn and VDD − |Vtp| both transistors conduct, so a slow input edge also wastes short-circuit current. The peak value is the current at VM.