VLSI Concept ยท Fundamentals
CMOS Transistor Basics
An inverter is just two switches that are never on at the same time.
A CMOS gate pairs a PMOS transistor (conducts when input is low) with an NMOS transistor (conducts when input is high), wired so exactly one of them connects the output to power or ground at any time โ never both. Stacking and combining these transistor networks is literally how AND/OR/NAND/NOR gates are built at the silicon level.