3.2.3 · D3CMOS Circuit Design

Worked examples — CMOS NAND and NOR gate design

2,396 words11 min readBack to topic

Before anything: two words we will lean on constantly.

We write logic for the high voltage and for ground . The output node is .


The scenario matrix

Every question this topic can throw lives in one of these cells. Each worked example below is tagged with the cell it covers.

Cell What it stresses Example
C1 All-inputs-low () degenerate: nothing HIGH Ex 1
C2 One-high-one-low () asymmetric — the tricky row Ex 2
C3 All-inputs-high () degenerate: everything HIGH Ex 3
C4 Full truth sweep, both gates every row at once Ex 4
C5 Safety limit prove never-short / never-float Ex 5
C6 Sizing, series vs parallel limiting resistance behaviour Ex 6
C7 3-input generalisation scaling the rule up Ex 7
C8 Real-world word problem stopwatch / alarm design Ex 8
C9 Exam twist — reverse-engineer given transistors, find Ex 9

Example 1 — Cell C1: both inputs LOW


Example 2 — Cell C2: mixed inputs

Figure — CMOS NAND and NOR gate design

Example 3 — Cell C3: both inputs HIGH (the only 0-output row of NAND)


Example 4 — Cell C4: full truth sweep of BOTH gates


Example 5 — Cell C5: prove the safety limit (never short, never float)


Example 6 — Cell C6: sizing at the limit (series doubles, parallel doesn't)

Figure — CMOS NAND and NOR gate design

Example 7 — Cell C7: generalise to a 3-input NAND


Example 8 — Cell C8: real-world word problem (a two-key launch interlock)


Example 9 — Cell C9: exam twist (reverse-engineer the function)


Recall

NAND output is 0 in how many of its 4 rows? ::: Exactly one — when . NOR output is 1 in how many rows? ::: Exactly one — when . Total device width of a 2-input NAND at (matched to inverter)? ::: ( NMOS + PMOS). Total width of the matched 2-input NOR at ? ::: ( NMOS + PMOS). If PDN is parallel-NMOS and PUN is series-PMOS, the gate is…? ::: NOR. Number of short-circuit rows in any correct CMOS gate? ::: Zero (duality forbids both nets on).

Connections

  • 3.2.03 CMOS NAND and NOR gate design (Hinglish) — parent topic these examples exercise.
  • CMOS Inverter — the 1-input base the sizing in Ex 6 is matched against.
  • De Morgan's Theorem — the identity Ex 5 uses to prove never-short/never-float.
  • MOSFET as a Switch — the conduct/off rule every example rests on.
  • Static Power and Short-Circuit Current — what Ex 5's zero-short-rows result buys you.
  • Logical Effort — quantifies the NAND-vs-NOR width gap from Ex 6.
  • Complex Gates (AOI/OAI) — where the 3-input generalisation of Ex 7 leads.