The CMOS Inverter
By Han · Published
The inverter is the simplest logic gate and the natural place to start understanding CMOS, because every more complex gate is built on the same principle. A CMOS inverter uses just two transistors: one PMOS transistor connected between the positive supply VDD and the output, and one NMOS transistor connected between the output and ground. The input drives both gates at once, and the output is taken from the point where the two transistors meet. The word complementary in CMOS refers exactly to this arrangement of a matched pair that behave in opposite ways.
Understanding the inverter means understanding two things: how it produces a clean logic 0 or 1 (its static behaviour, captured by the voltage transfer characteristic), and how much power it costs to run. Both are covered below. If you want to see the inverter inside larger circuits, the CMOS gate design guide extends the same pull-up and pull-down idea to any Boolean function.
How it switches
An NMOS transistor turns on when its gate voltage is high; a PMOS transistor turns on when its gate voltage is low. Because both gates share the same input, exactly one transistor is strongly on at a time in steady state.
- Input low (0): the NMOS is off and the PMOS is on. The PMOS connects the output to VDD, so the output is pulled to a solid logic 1.
- Input high (1): the NMOS is on and the PMOS is off. The NMOS connects the output to ground, so the output is pulled to a solid logic 0.
The output is always the complement of the input, which is the whole point of an inverter. Just as importantly, in either steady state there is no continuous path from VDD to ground, because one of the two transistors is always off. This is the structural reason CMOS draws almost no current when it is not switching, and it is what let CMOS displace the older NMOS-only logic families that wasted power constantly.
The voltage transfer characteristic
The voltage transfer characteristic, or VTC, is the plot of output voltage against input voltage as the input sweeps slowly from 0 to VDD. It is the single most informative graph for a logic gate, and for the CMOS inverter it has a distinctive steep, almost vertical, transition in the middle. That steepness is what gives digital logic its noise immunity: a small change in a valid input voltage produces almost no change in the output.
The curve is traditionally divided into five regions as the input rises:
- Region 1: input near 0. NMOS off, PMOS in its linear region, output held at VDD.
- Region 2: input rising past the NMOS threshold. NMOS enters saturation, PMOS still in linear region, output begins to fall.
- Region 3: the transition. Both transistors are in saturation, the output drops steeply, and this is the only region where a direct current path briefly exists.
- Region 4: NMOS now in linear region, PMOS in saturation, output continues down toward 0.
- Region 5: input near VDD. PMOS off, NMOS in linear region, output held at 0.
The input voltage at which output equals input, in the middle of Region 3, is the switching threshold VM. By sizing the PMOS wider than the NMOS to compensate for the lower mobility of holes, a designer can place VM at roughly VDD/2, which gives the most symmetric and robust behaviour.
Noise margins
Real signals pick up noise on the way from one gate to the next, so a gate has to tolerate inputs that are not exactly 0 or VDD. Noise margins quantify that tolerance. They are defined using the two points on the VTC where its slope equals -1, which mark the edges of the usable logic levels:
- VIL: the highest input still guaranteed to read as logic 0.
- VIH: the lowest input still guaranteed to read as logic 1.
- VOL and VOH: the output voltages for logic 0 and logic 1, which for CMOS are very close to 0 and VDD.
From these, the low and high noise margins are NML = VIL - VOL and NMH = VOH - VIH. A larger noise margin means more unwanted voltage can be added to a signal before the next gate misreads it. Because CMOS outputs swing nearly rail to rail, its noise margins are large, typically a good fraction of VDD, which is another reason the family is so dependable.
Power: static versus dynamic
CMOS power comes in two kinds. Static power is what the gate burns while sitting still. Since one transistor is always off in steady state, the only static current is a tiny leakage, so static power is very small (though it has grown in importance as transistors have shrunk).
Dynamic power is what dominates in classic CMOS, and it is spent charging and discharging the load capacitance every time the output switches. It follows Pdyn = α C VDD2 f, where C is the load capacitance, f the clock frequency, and α the activity factor (the fraction of cycles on which the output actually toggles). The square dependence on VDD is the reason lowering the supply voltage is the most effective single lever for cutting power, and it is why supply voltages have fallen steadily across chip generations. A smaller contribution comes from the brief short-circuit current during Region 3 of each transition, when both transistors conduct at once.
Frequently Asked Questions
Keep learning
- Designing a CMOS gate from a Boolean expression, which generalises the inverter to any function.
- NAND, NOR and SOP vs POS for the pull-up and pull-down networks of real gates.
- Logic gates explained for the logical behaviour these transistors implement.
- See transistor-level circuits for any expression in the CMOS Generator.
References: A. S. Sedra and K. C. Smith, Microelectronic Circuits; J. M. Rabaey, A. Chandrakasan and B. Nikolic, Digital Integrated Circuits: A Design Perspective; N. Weste and D. Harris, CMOS VLSI Design.