Basic and universal logic gates, the CMOS inverter (transfer curve, switching threshold, noise margins, power), building any static CMOS gate from dual pull-up and pull-down networks, transistor sizing, and reading a CMOS circuit.
NAND and NOR are universal: any Boolean function can be built from NAND gates alone (or NOR gates alone).
Function
2-input NAND gates
2-input NOR gates
NOT
1
1
AND
2
3
OR
3
2
XOR
4
5
XNOR
5
4
Useful facts.
De Morgan: , so a NAND is an OR with inverted inputs ("bubble pushing").
A two-level AND-OR circuit becomes a NAND-NAND circuit by replacing every gate with NAND; OR-AND becomes NOR-NOR.
XOR is associative; , . A chain of XORs gives odd parity.
Tying the inputs of a NAND or NOR together gives an inverter.
2. The CMOS inverter
A CMOS inverter is a PMOS from to the output and an NMOS from the output to ground, with gates tied together. For the PMOS is on and the NMOS off, so ; for the reverse, so .
Key properties.
Rail-to-rail output: , .
No static current (ideally): in either steady state one transistor is off. Power is drawn mainly while switching.
Very high input resistance; one gate can drive many (large fan-out, limited by delay).
Switching threshold is where ; both transistors are saturated there. With square-law devices, and :
For and , (symmetric). Since to , the PMOS is made 2 to 3 times wider for this. A stronger NMOS pulls down; a stronger PMOS pushes it up.
Noise margins use and , the input voltages where the transfer curve has slope :
CMOS inverter: the PMOS pulls the output up to VDD when A = 0, the NMOS pulls it down to ground when A = 1.
3. Building static CMOS gates: PUN and PDN
A static CMOS gate has an NMOS pull-down network (PDN) between output and ground, and a PMOS pull-up network (PUN) between and output. For every input combination exactly one of them conducts.
Design rules.
Write the function as . The PDN realises : AND → NMOS in series, OR → NMOS in parallel.
The PUN is the dual: series ↔ parallel swapped, PMOS with the same inputs.
Each input drives one NMOS and one PMOS, so an -input gate needs transistors.
Gate
PDN
PUN
Transistors
Inverter
1 NMOS
1 PMOS
2
NAND2
2 NMOS in series
2 PMOS in parallel
4
NOR2
2 NMOS in parallel
2 PMOS in series
4
AND2, OR2
NAND2 or NOR2 + inverter
6
(AOI21)
series
6
(AOI22)
two series pairs in parallel
two parallel pairs in series
8
Static CMOS is inherently inverting: one stage gives only negative (inverting) functions. A non-inverting function such as AND needs an extra inverter.
Reading a circuit. Find the PDN, write its conduction condition (series = AND, parallel = OR), and the output is . Check that the PUN conducts on .
Static CMOS NAND2: series NMOS pull-down and parallel PMOS pull-up (the dual network).
4. Transistor sizing: why NAND beats NOR
A conducting MOSFET acts roughly like a resistor . Transistors in series add their resistances; so to match a reference inverter, devices in series must each be times wider.
Take the reference inverter as NMOS width , PMOS width (since ). For equal worst-case drive:
Gate
Each NMOS
Each PMOS
Total width
NAND2
2
2
8
NOR2
1
4
10
NAND3
3
2
15
NOR3
1
6
21
NAND is preferred over NOR: its series devices are the fast NMOS, while NOR stacks the slow PMOS. NAND is smaller and has less input capacitance for the same speed.
Fan-in. A large fan-in means long series stacks; delay grows roughly as the square of the fan-in (both resistance and capacitance grow). Gates with more than about 4 inputs are usually split into a tree of smaller gates.
The worst-case pull-down of a NAND is through all the series NMOS; the worst-case pull-up is through one PMOS (only one input low).
5. Power and delay of CMOS gates
Dynamic (switching) power. Each output transition draws energy from the supply: half is stored on the load, half is lost in the PMOS; the stored half is lost in the NMOS on discharge. With activity factor (fraction of clock cycles with a output transition):
For a signal that switches every cycle (a clock), .
Other components.
Short-circuit power: for a short time during an input transition both devices conduct. It grows with slow input edges.
Leakage (static) power: sub-threshold and junction leakage when transistors are nominally off; significant in deep sub-micron processes.
Lowering power: reduce (quadratic saving), , or (clock gating).
Propagation delay. Treating the conducting path as a resistor charging ,
Delay falls with wider transistors (lower ) and higher (more current), but rises with load capacitance and fan-out. The power-delay product is the energy per switching event, a common figure of merit.
Formulas to remember
Switching thresholdSquare-law model, both devices saturated
Noise margins
Dynamic power
Energy drawn per 0 to 1 transitionHalf stored on , half lost in the PMOS
Propagation delay
Static CMOS transistor countFor an -input single-stage gate
Common mistakes
Taking the pull-down network's function as the output; the output is its complement because the PDN pulls the output low.
Forgetting to swap series and parallel when forming the pull-up network.
Assuming a single static CMOS stage can give AND or OR; those need a NAND or NOR plus an inverter.
Sizing parallel transistors up; only series devices are widened, by the number of devices in the stack.
Using C V squared f without the activity factor, or counting one half of C V squared as the energy drawn per transition instead of all of it.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Reading a CMOS circuit
conceptual
In a static CMOS gate the pull-down network has NMOS and in series, and this pair in parallel with NMOS . Find the output function, describe the pull-up network and count the transistors.
Step 1: Write the condition for the PDN to conduct.
Try it on paper first.
Example 2: Switching threshold of an inverter
numerical
A CMOS inverter has , and . Find .
Step 1: Find $r$.
Try it on paper first.
Example 3: Dynamic power
numerical
A CMOS gate drives at , clock , activity factor . Find the dynamic power. What is it if is cut to ?
Step 1: Apply $P = \alpha C_LV_{DD}^2f$.
Try it on paper first.
Example 4: Sizing a NAND3
numerical
The reference inverter has NMOS width and PMOS width . Size a three-input NAND for the same worst-case drive, and compare its total width with a NOR3.
Step 1: Size the series NMOS stack.
Try it on paper first.
Previous year questions
1 official GATE EC question on this topic, newest first.
9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.