Descend far enough down the
You already know how a
A MOSFET has three terminals that matter for logic (a fourth, the body or bulk, is normally tied to a supply rail and we will quietly ignore it):
The gate sits over a thin insulating layer of oxide — it is one plate of a capacitor, not a wire into the channel. That is why the gate draws essentially no steady current: you are charging a capacitor, not pushing current through a resistor. This is the property that lets logic gates fan out to many inputs almost for free, and it is why static CMOS burns almost no power while it sits still.
An NMOS transistor conducts when its gate is pulled to a high voltage relative to its
source. Precisely, it turns on once the gate-to-source voltage climbs past a positive
threshold voltage
Below threshold the channel is empty and the switch is open; above it, a conducting layer of electrons forms and source and drain are joined. Think of it as a switch whose control logic is "close me when the gate is 1."
A PMOS transistor is the complement. Its threshold is negative, and it conducts
when the gate is pulled below the source by more than
In a logic circuit the PMOS source sits at the top rail
Here is the fact that shapes all of CMOS. Each switch passes one logic value cleanly and the
other value degraded. An NMOS is superb at pulling a node down to ground — it passes a
strong 0. But when you try to pass a high voltage through an NMOS, it stops
conducting as the output approaches
PMOS is the mirror image: brilliant at delivering the full
| Device | Turns ON when gate is… | Passes cleanly | Passes badly |
|---|---|---|---|
| NMOS | HIGH ( | a strong 0 (down to GND) | a weak 1 (stops at |
| PMOS | LOW ( | a strong 1 (up to | a weak 0 (stops at |
The switch abstraction is so clean you can capture both devices in a few lines. We model a rail as a voltage and ask each transistor whether it conducts, and what quality of value it would deliver.
The thin oxide under the gate is what makes the transistor a field-effect device: the gate controls the channel by its electric field, not by injecting current. That insulation is worth a fortune. Because no DC flows into the gate, a logic output can drive dozens of downstream gates without its voltage sagging, and an idle circuit dissipates almost nothing. The price is that the gate is a capacitor you must charge and discharge every time it switches — and charging capacitors through resistive wires is exactly the delay and the dynamic power that dominate everything from here on. The insulator that saves static power sets the switching speed. That oxide is now only a handful of atoms thick, which is one of the hard walls of modern scaling.
A tempting mistake: "the NMOS gate is a 1, so its output is a 1." No. The gate value says whether the
switch is closed, not what value comes out. A closed NMOS connects its drain to whatever its
source is wired to — in logic that source is ground, so a closed NMOS drives the output
toward 0. NMOS switches on with a gate 1 but outputs a 0. This inversion
is not a nuisance; it is the reason the natural CMOS gate is the inverting
Once you accept "voltage-controlled switch," the rest of digital design is combinatorics on switches: wire switches in series to demand that all their gates agree, in parallel to accept any of them, and you have built AND-like and OR-like conditions out of physics. The next lesson does exactly that, pairing NMOS pull-down networks with PMOS pull-up networks to build gates that always drive a strong value and burn no static power. Every flip-flop, adder and multiplier you meet later is a large, cleverly arranged crowd of these two little switches.