Exercises — CMOS NAND and NOR gate design
Before we start, one shared picture that every problem leans on:

Definition Symbols used on this page (open if unsure)
- ::: the supply rail = logic voltage (the "top" wire).
- ::: ground = logic voltage (the "bottom" wire).
- PUN ::: Pull-Up Network — PMOS transistors between and output .
- PDN ::: Pull-Down Network — NMOS transistors between and .
- ::: how fast electrons / holes move. is the mobility ratio (typically –).
- ::: transistor width. Wider = lower resistance = more current = faster.
- "unit" transistor ::: a reference-size device. NMOS unit width ; a matched-drive inverter uses PMOS width .
L1 — Recognition
Problem 1.1
A student points at a network of two transistors in series connecting the output node to . What logic operation does this implement, and what transistor type must these be?
Recall Solution 1.1
A path from to is the pull-down path, so the devices are NMOS. Series means current must survive the whole chain — both switches must be ON. "Both ON" is the AND operation. So: series NMOS = AND, and pulling down to when . This is the PDN of a NAND gate.
Problem 1.2
Fill in: PMOS conducts (turns ON) when its gate is ______, and it passes a strong logic . Therefore it belongs in the pull- network.
Recall Solution 1.2
PMOS conducts when its gate is LOW (). It passes a strong . So it belongs in the pull-UP network (pulling toward ).
Problem 1.3
Name the two De Morgan identities and match each to whether it produces series or parallel PMOS in the PUN.
Recall Solution 1.3
- → an OR of complements → parallel PMOS (this is NAND's PUN).
- → an AND of complements → series PMOS (this is NOR's PUN).
L2 — Application
Problem 2.1
Build the transistor topology of a 2-input NAND (). List PDN and PUN, then verify the input .
Recall Solution 2.1
- PDN: only when → AND → 2 NMOS in series ( to ).
- PUN (dual): swap series→parallel, NMOS→PMOS → 2 PMOS in parallel ( to ).
- Verify : PDN needs both NMOS ON; the -NMOS has gate → OFF → PDN broken. PUN: the -PMOS has gate → ON → pulls . And . ✓
Problem 2.2
Build the 2-input NOR (). Give PDN and PUN, then verify .
Recall Solution 2.2
- PDN: when → OR → 2 NMOS in parallel.
- PUN: → AND of complements → 2 PMOS in series.
- Verify : PDN parallel — both NMOS ON → pulls . PUN series — each PMOS gate → OFF → no pull-up. . ✓
Problem 2.3
For a matched-drive design with mobility ratio , give the transistor widths for the 2-input NAND and the 2-input NOR (NMOS unit width , inverter PMOS width ). Which is bigger, and why?
Recall Solution 2.3
Rule: transistors in series must each be wider to keep the same series resistance; parallel devices are unaffected.
- NAND: NMOS in series () → width ; PMOS parallel → width . Widths: N=2, P=2.
- NOR: NMOS parallel → width ; PMOS in series () → width . Widths: N=1, P=4. NOR is bigger because its slow PMOS are in series and must be widened to . Total transistor width: NAND per input path pair; NOR . NAND wins.
L3 — Analysis
Problem 3.1
A 2-input CMOS gate has PDN = 2 NMOS in parallel and PUN = 2 PMOS in series. Without being told the name, derive the Boolean function and identify the gate.
Recall Solution 3.1
- PDN parallel NMOS → conducts (pulls ) when OR is HIGH, i.e. when .
- is exactly when , so .
- PUN series PMOS confirms it: conducts (pulls ) only when both gates LOW, i.e. , and ✓ (De Morgan).
- This is a 2-input NOR.
Problem 3.2
Consider the NAND gate at input . Trace every transistor's state, confirm exactly one network conducts, and confirm there is no -to- short and no floating output.
Recall Solution 3.2
NAND: PDN = series NMOS (); PUN = parallel PMOS (). Gates driven by .
- : gate → ON. : gate → OFF. Series pair → broken (one OFF kills the chain) → PDN OFF.
- : gate → OFF. : gate → ON. Parallel → one ON path is enough → PUN ON.
- Exactly one net (PUN) conducts → ✓.
- No short: PDN is OFF while PUN is ON, so no continuous path.
- No float: PUN actively drives to .
Problem 3.3
"Broken-dual" bug. An engineer wires a gate with PDN = 2 NMOS in series (a correct NAND PDN) but by mistake also makes the PUN = 2 PMOS in series. For input , what happens to , and why is this a hardware failure?
Recall Solution 3.3
- Correct NAND wants PUN = parallel PMOS. Here PUN is series (bug).
- At : PDN series NMOS — both gates → both OFF → PDN OFF. PUN series PMOS — both gates → both ON → PUN conducts, so . This particular row happens to look right.
- But test : PDN — needs gate ON, gate OFF → PDN OFF (fine). PUN series — gate ON, gate OFF → PUN OFF. Now neither network conducts → floats (holds garbage / high-impedance). ✗
- Failure mode: the networks are no longer duals, so the "exactly one conducts" guarantee is broken → floating output on some inputs. The correct NAND is ; a series-PUN gate is not the complement of a series-PDN gate.
L4 — Synthesis
Problem 4.1
Design a CMOS gate for (an AOI — AND-OR-Invert). Give the PDN and the dual PUN, and describe each transistor's connection.
Recall Solution 4.1
Read the un-inverted expression to build the PDN (PDN conducts when ):
- → series NMOS pair .
- → that pair is in parallel with a single NMOS .
- PDN: series in parallel with , between and .
PUN = full dual (swap series↔parallel, NMOS→PMOS):
- The AND () becomes parallel; the OR () becomes series.
- PUN: parallel in series with , between and .
- Check with De Morgan: → an OR (, parallel) ANDed with (series) ✓.
Problem 4.2
For the AOI gate of 4.1, size the transistors for equal drive (mobility ratio , NMOS unit , inverter PMOS ). Find the worst-case NMOS series width and the worst-case PMOS series width.
Recall Solution 4.2
- PDN worst-case series path: the longest chain that must sink current is – (2 in series). Each → width . ( alone → width .)
- PUN worst-case series path: is in series with the parallel pair. Trace the longest PMOS chain that must source current: through then either or — that's 2 PMOS in series. Each PMOS in that series path → width . (If the pair were counted as one effective device, the series depth from to is 2.)
- So: series NMOS width ; series PMOS width . As always, the PMOS series stack is the area/speed cost.
Problem 4.3
Build (an OAI — OR-AND-Invert). Give PDN and PUN.
Recall Solution 4.3
Build PDN from :
- → parallel NMOS .
- → put that parallel block in series with .
- PDN: in series with , from to .
PUN = dual: parallel→series, series→parallel, NMOS→PMOS:
- (parallel) → series PMOS series .
- in series with → becomes parallel with .
- PUN: series in parallel with , from to .
- De Morgan check: → an AND (, series) ORed with (parallel) ✓.
L5 — Mastery
Problem 5.1
You must drive a large load and the vendor library offers only NAND and NOR cells with the sizings from Problem 2.3 (: NAND N=2/P=2, NOR N=1/P=4). You need a 2-input NOR function. Argue whether it is cheaper (in total transistor width) to (a) use the NOR cell directly, or (b) synthesize NOR from a NAND cell plus inverters using De Morgan. Assume an inverter costs N=1, P==2 (width ).
Recall Solution 5.1
- (a) NOR cell direct: total width .
- (b) De Morgan route: . So NOR invert , invert , then... a NAND of the inverted inputs gives (an OR, wrong), then invert → 2 inverters + NAND + inverter. Simplest correct build: via NAND needs ... this balloons. Even the minimal working chain is 2 input-inverters + NAND () + output inverter, i.e. width.
- Conclusion: the direct NOR cell (width ) is far cheaper than synthesizing it (). The De Morgan trick is for logic manipulation, not for saving transistors when the target cell already exists. Direct NOR wins: .
Problem 5.2
Full mastery check. A gate is specified by the truth table below. Recover , decide NAND or NOR, give the transistor topology, and confirm "exactly one network conducts" for the row .
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Recall Solution 5.2
- only at , i.e. when . So → NAND.
- Topology: PDN = 2 NMOS in series; PUN = 2 PMOS in parallel.
- Row : PDN series — gate OFF, gate ON → chain broken → PDN OFF. PUN parallel — gate ON, gate OFF → one ON path → PUN ON. Exactly one conducts (PUN) → ✓, matches the table.
Problem 5.3
Timing insight. For the NAND (, N=2/P=2) versus NOR (, N=1/P=4), the worst-case pull-up delay scales with the series-PMOS resistance. Model each PMOS unit-resistance as (for a unit-width device) so a width- device has resistance . Compute the worst-case pull-up resistance of each gate and state which is slower to pull HIGH.
Recall Solution 5.3
Resistance of a width- PMOS . Series resistances add.
- NAND pull-up: PMOS are parallel, each width . Worst case only one path is ON (e.g. → only on): .
- NOR pull-up: PMOS are series, each width . Both in series: .
- By design both hit — that's exactly why NOR PMOS were widened to (to compensate the series stack). The catch: NOR paid double the area ( vs ) to reach the same speed. So NOR is not slower here, but it is bigger and more capacitive, which is the real penalty. NAND is preferred: same drive, less width.
Connections
- MOSFET as a Switch — the ON/OFF rules every solution above relies on.
- De Morgan's Theorem — the engine behind every PUN-from-PDN dual.
- Complex Gates (AOI/OAI) — L4 problems 4.1–4.3 are its base cases.
- Logical Effort — formalizes the width/delay trade-offs of L5.
- Static Power and Short-Circuit Current — what problem 3.3's broken dual would violate.
- CMOS Inverter — the 1-input cell used for sizing baselines.
- CMOS NAND and NOR gate design — parent topic.