Apex › Hardware

Transistors → logic gates

The bottom of the stack. A transistor is a voltage-controlled switch: NMOS conducts when its gate is high, PMOS when low. Wire a PMOS pull-up and NMOS pull-down together and you get a CMOS gate — an inverter, a NAND, a NOR. And NAND alone is universal: every other gate is built from it. Toggle inputs to watch the transistors conduct, then build any gate from NAND. Everything above — the adder, the ALU, the flip-flop — is just billions of these.

More in Hardware