DLD Notes: Basics and Logic Families

Nov 19, 2026·Pranesh Mahanta·21ECC203T — Digital Logic Design

Boolean algebra and its laws, Karnaugh maps, Quine–McCluskey minimization, then the transistor-level logic families — a TTL NAND gate taken apart stage by stage, the specifications that matter (noise margin, propagation delay, fan-in, fan-out), and CMOS. Every worked problem is stated in full and solved step by step.

Contents
  1. Boolean algebra — the algebra of switching circuits
  2. The laws and theorems of Boolean algebra
  3. De Morgan’s theorems
  4. Minterms, maxterms and standard forms
  5. The Karnaugh map (2- and 3-variable)
  6. The 4-variable Karnaugh map
  7. Don’t-care conditions
  8. Quine–McCluskey minimization (4-variable)
  9. Logic families — the landscape
  10. Inside a TTL NAND gate
  11. Noise margin
  12. Propagation delay
  13. Fan-in and fan-out
  14. CMOS: the inverter
  15. CMOS NAND and NOR gates
  16. Formula & design-recipe sheet

1Boolean algebra — the algebra of switching circuits

What it is. Boolean algebra (George Boole, 1847; applied to switching circuits by Claude Shannon, 1938) is an algebra whose variables take only two values, 0 and 1, and whose basic operations are AND (written x y or x·y), OR (written x + y), and NOT (written x′, also x̄ or ¬x). In this course a 0/1 variable is a wire voltage (low/high), so every theorem of the algebra is a statement about what real circuits can do — that is why Boolean theorems are the legal moves for simplifying hardware.

Notation used throughout these notes. Complement is a prime (A′), AND is juxtaposition (AB), OR is +, XOR is ⊕. Precedence: NOT first, then AND, then OR — so A + B′C means A + (B′ C).

The three primitive operations
AND: 0·0 = 0,  0·1 = 0,  1·1 = 1  (outputs 1 only when all inputs are 1)
OR:  0+0 = 0,  0+1 = 1,  1+1 = 1  (outputs 1 when any input is 1)
NOT:  0′ = 1,  1′ = 0
Note the difference from ordinary arithmetic: 1 + 1 = 1 in Boolean algebra (OR), not 2. There are no negative numbers and no subtraction.

A Boolean function maps each of the 2n input combinations of n variables to a 0 or a 1; the truth table is the exhaustive listing of that mapping, and the algebraic expression is a (usually shorter) description of the same mapping. One truth table can have many equivalent expressions — finding the cheapest one is the job of minimization (sections 5–8).

Why two "shapes" of expression matter. The same function can be built from AND-then-OR wiring (sum-of-products) or OR-then-AND wiring (product-of-sums). Some families (e.g. plain NOR gates) favor one shape over the other, so converting between shapes is a working skill, not a formality.

2The laws and theorems of Boolean algebra

Each law comes in an AND-form and an OR-form because of the duality principle: swap AND↔OR and 0↔1 in any true identity and the result is also a true identity. Duality does not say a function equals its dual — it says the theorem survives the swap.

LawOR formAND form
Identityx + 0 = xx·1 = x
Null (dominance)x + 1 = 1x·0 = 0
Idempotentx + x = xx·x = x
Complementx + x′ = 1x·x′ = 0
Involution(x′)′ = x
Commutativex + y = y + xxy = yx
Associative(x+y)+z = x+(y+z)(xy)z = x(yz)
Distributivex(y + z) = xy + xzx + yz = (x+y)(x+z)
Absorptionx + xy = xx(x + y) = x
Consensusxy + x′z + yz = xy + x′z(x+y)(x′+z)(y+z) = (x+y)(x′+z)
Two traps. (1) x + yz = (x+y)(x+z) is the distributive law in Boolean algebra even though it is false in ordinary arithmetic — it is used constantly and is the key step in most manual proofs. (2) The consensus term yz in xy + x′z + yz is redundant: it is covered wherever the other two terms are 1.
Worked problem
Prove, using only the laws of Boolean algebra (no truth tables): (a) x + x′y = x + y;  (b) x(x + y) = x;  (c) xy + x′z + yz = xy + x′z (consensus).
(a) The trick is the second distributive law u + vw = (u+v)(u+w) with u = x:
x + x′y = (x + x′)(x + y)  (distributive)  = 1·(x + y) = x + y  (complement, identity).
(b) x(x + y) = xx + xy (distributive) = x + xy (idempotent) = x(1 + y) (reverse distributive) = x·1 = x (null, identity). Note (b) is the dual of (a).
(c) Add the harmless term yz(x + x′) = yz (it equals 0 + existing yz, so the expression is unchanged):
xy + x′z + yz = xy + x′z + yz(x + x′) = xy + x′z + xyz + x′yz
= xy(1 + z) + x′z(1 + y) = xy + x′z  (absorption on each pair). The term yz was the consensus of xy and x′z (the variable that appears in one and its complement in the other is x; the leftover literals form yz) — and it can always be deleted. ✓ All three identities hold for every input combination.

3De Morgan’s theorems

De Morgan’s theorems are the bridge between AND-logic and OR-logic, and they are the only correct way to push a NOT through a parenthesized expression:

De Morgan’s theorems
(x + y)′ = x′ y′    (the NOR operation: “neither”)
(xy)′ = x′ + y′    (the NAND operation: “not both”)
Generalized to any number of terms: to complement an expression, break the outer connective, complement every literal under it, and swap AND ↔ OR. Complementing twice returns the original expression (involution).

A NAND gate is therefore an AND gate whose output has been inverted, and a NOR gate is an inverted OR. This is why NAND and NOR are called the universal gates: each one alone can realize NOT (tie inputs together), AND, and OR, hence any function. In TTL and CMOS, NAND and NOR are also the naturally cheapest gates to build (section 15), which makes De Morgan conversion the daily bread of real design: you minimize an expression in AND/OR form, then apply De Morgan to map it onto the gate type you have.

Worked problem
Using De Morgan’s theorems, find the complement of F = A(B + C′D) + A′C and simplify the result.
Complement the whole right-hand side, splitting at the outer OR:
F′ = [A(B + C′D)]′ · (A′C)′  (De Morgan on the outer +)
= [A′ + (B + C′D)′] · (A + C′)  (De Morgan on each AND)
Now push inside the remaining parenthesis: (B + C′D)′ = B′(C′D)′ = B′(C + D′).
Result: F′ = [A′ + B′(C + D′)](A + C′).
Check by spot values. • A,B,C,D = 1,0,0,0: F = 1·(0 + 1·0) + 0 = 0, so F′ = 1; formula: [0 + 1(0+1)](1+1) = 1 ✓. • A,B,C,D = 0,1,1,0: F = 0 + 1·1 = 1, so F′ = 0; formula: [1 + 0·…](0+0) = 0 ✓. • A,B,C,D = 0,1,0,1: F = 0 + 1·0 = 0, F′ = 1; formula: [1 + 0·…](0+1) = 1 ✓. The expression already cannot be reduced further by the laws of section 2 (no term absorbs another).

4Minterms, maxterms and standard forms

A minterm mi of n variables is the AND product that is 1 for exactly one input combination: every variable appears once, complemented if its bit in the binary index i is 0, uncomplemented if it is 1. A maxterm Mi is the dual OR sum that is 0 for exactly one combination (each variable uncomplemented when its bit is 0, complemented when 1). Note mi′ = Mi: maxterms and minterms are complements of each other at the same index.

The three equivalent certificates of a function (example alphabet: F(A,B,C))
F = Σm(1, 3, 5)  — sum of the minterms where F is 1 (canonical SOP)
F = ΠM(0, 2, 4, 6, 7)  — product of the maxterms where F is 0 (canonical POS)
F′ = Σm(0, 2, 4, 6, 7) = ΠM(1, 3, 5)  — the complement swaps the two lists
Given Σm(S), the maxterm list is the complement set Σm… of the indices not in S over 0 … 2n−1.
Worked problem
For F(A,B,C) = Σm(1, 3, 5): (a) write the canonical sum of products; (b) write the canonical product of sums; (c) simplify both to their cheapest form and show they agree.
(a) Index → minterm: 1 = 001 → A′B′C; 3 = 011 → A′BC; 5 = 101 → AB′C.
Canonical SOP: F = A′B′C + A′BC + AB′C.
(b) The missing indices are 0, 2, 4, 6, 7, and index → maxterm (complement each 0-bit): 0 = 000 → A+B+C; 2 = 010 → A+B′+C; 4 = 100 → A′+B+C; 6 = 110 → A′+B′+C; 7 = 111 → A′+B′+C′.
Canonical POS: F = (A+B+C)(A+B′+C)(A′+B+C)(A′+B′+C)(A′+B′+C′).
(c) Simplify the SOP: A′B′C + A′BC = A′C (combine on B); so F = A′C + AB′C = C(A′ + AB′)  and by the theorem of section 2(a), A′ + AB′ = A′ + B′. So F = C(A′ + B′) — two literals of logic instead of twelve.
Simplify the POS: (A+B+C)(A+B′+C) = (A + C + BB′) = A + C... more carefully with the identity (u+w)(u+v) = u + wv: (A+B+C)(A+B′+C) = (A+C) + B·B′ = A+C; similarly (A′+B+C)(A′+B′+C) = A′ + C; so F = (A+C)(A′+C)(A′+B′+C′) = (C + AA′)(A′+B′+C′) = C(A′+B′+C′) = CC′ + C(A′+B′) = C(A′+B′). Both forms collapse to the same minimized expression ✓ — a useful sanity check that the minterm and maxterm lists were written correctly.

5The Karnaugh map (2- and 3-variable)

A Karnaugh map (K-map) is the truth table redrawn so that physically adjacent cells differ in exactly one variable (cells are ordered in Gray code: 00, 01, 11, 10 — never binary order). Because adjacent cells differ in one literal, any two adjacent 1s merge into one product term with that variable cancelled; a group of 2k mutually adjacent 1s cancels k literals. The map also wraps around: the left edge is adjacent to the right edge, the top edge to the bottom edge, and in a 4-variable map the four corners are mutually adjacent.

Grouping rules
1. Groups must be rectangles of size 1, 2, 4, 8, … (powers of two) containing only 1s (and optionally X’s, section 7).
2. Groups should be as large as possible (fewer literals) and as few as possible (fewer terms).
3. Every 1 must be covered by at least one group; overlapping is allowed.
4. Diagonal-only pairs are not adjacent — they differ in two variables.
A 3-variable map has rows = A and columns = BC in Gray order; a 2-variable map is just a 2×2 square.
Worked problem
Minimize F(A,B,C) = Σm(1, 3, 5, 7) with a K-map.
Lay out rows A = 0, 1 and columns BC = 00, 01, 11, 10:
A \ BC00011110
00110
10110
The two right-side columns BC = 01 and 11 are fully 1 and together span C = 1 with B taking both values — an octet-sized column pair forms the single quad C. F = C: the function is just wire C to the output. Every 1 is covered, no 0 is included ✓. (Algebraically: A′B′C + A′BC + AB′C + ABC = A′C(B′+B) + AC(B′+B) = A′C + AC = C — the map did the same work at a glance.)
Worked problem
Minimize F(A,B,C) = Σm(0, 1, 2, 3, 4, 6) with a K-map.
A \ BC00011110
01111
11001
The entire A = 0 row is one quad → A′. The remaining 1s at m4 (100) and m6 (110) are adjacent (columns 00 and 10 wrap) and merge to AC′. F = A′ + AC′. Alternatively m4 could pair with m0 (B′C′) and m6 with m2 (BC′), giving A′ + B′C′ + BC′ = A′ + C′ — one literal cheaper, and a good reminder to test all maximal groupings before settling. Both answers are correct Boolean covers; A′ + C′ is the minimum-cost one.

6The 4-variable Karnaugh map

The 4-variable map uses rows AB and columns CD, both in Gray order (00, 01, 11, 10). Everything from section 5 applies, plus two new moves: the four corners form a quad (each corner cell is adjacent to two others, and the map wraps in both directions), and pairs of opposite edges merge. A systematic recipe: find all essential 1s (1s with only one possible maximal group) first, cover them, then cover any stragglers with the largest groups available.

AB \ CD00011110
00m0m1m3m2
01m4m5m7m6
11m12m13m15m14
10m8m9m11m10
Worked problem
Minimize F(A,B,C,D) = Σm(0, 2, 5, 7, 8, 10, 13, 15) using a 4-variable K-map.
Plot the 1s:
AB \ CD00011110
001001
010110
110110
101001
Group 1 — the four corners (m0, m2, m8, m10): top-left and bottom-left wrap vertically, left and right wrap horizontally, so the corners are a legal quad. Common literals: B = 0 and D = 0 in all four cells → term B′D′.
Group 2 — the centre quad (m5, m7, m13, m15): common literals B = 1, D = 1 → term BD.
All eight 1s are covered; no term covers a 0. F = B′D′ + BD — recognizable as F = (B ⊕ D)′, the XNOR of B and D: F is 1 exactly when B and D agree. ✓ (Spot check: m13 = 1101 has B = D = 1 → BD = 1; m9 = 1001 has B = 0, D = 1 → both terms 0, and indeed m9 is not in the list.)

7Don’t-care conditions

Real circuits often never produce some input combinations — e.g. BCD inputs 1010–1111 never occur, or an output is simply unconstrained for some states. Such combinations are don’t-cares, written di or X. In a K-map each X may be treated as a 1 or as a 0, whichever helps: include an X in a group only when doing so makes the group larger or eliminates a group entirely. Never feel obliged to cover the X’s themselves — only the 1s must be covered.

Why don’t-cares shrink circuits. A lone 1 forces a term with all its literals; a 1 sitting next to an X can join a bigger group. Using X’s freely can never break the circuit (the combination never happens), and usually saves gates. The catch: once you assign an X to a group, the circuit’s output for that combination is defined (as 1) even though nobody will ever observe it.
Worked problem
Minimize F(A,B,C,D) = Σm(1, 3, 7, 11, 15) + d(0, 2, 5). State which don’t-cares you use and why. Could F ever equal simply D?
AB \ CD00011110
00X11X
010X10
110010
100010
Group 1: the four cells with CD = 11 (m3, m7, m11, m15) are all required 1s → quad CD.
Group 2: m1 pairs with the don’t-care m0 (adjacent by column wrap) → pair A′B′C′. We used X0 to enlarge m1’s group from a lone cell (3 literals) to a pair (2 literals). We did not use X2 or X5: X2 has no 1-neighbour worth joining, and although X5 could join m1 and m3, it cannot extend the CD quad (cells m5, m13 would need D·… with m13 = 0), so it buys nothing.
Result: F = CD + A′B′C′. Every required 1 is covered; the only extra cell inside a group is the don’t-care m0 ✓.
Could F = D? The single term D is the octet of all cells with D = 1: m1,3,5,7,9,11,13,15. That would require m9 and m13 to be 1s or don’t-cares — they are 0s — so no. D alone is illegal; the two-term answer above is minimal.

8Quine–McCluskey minimization (4-variable)

The Quine–McCluskey (tabular) method does exactly what a K-map does, but as a table — which makes it algorithmic and safe for many variables or for machine implementation. Three stages:

The three stages
1. Group the minterms by the number of 1s in their binary index.
2. Combine repeatedly: two terms may merge only if they differ in exactly one bit position and have dashes in the same positions; the differing bit becomes a dash (–). Tick every term that gets combined. Terms never combined are the prime implicants (PIs). Repeat until no new combination.
3. Prime-implicant chart: rows = PIs, columns = minterms. A PI that is the only cover of some minterm is essential — take it. Then cover any remaining columns with the cheapest PIs (fewest literals).
Same dashes are non-negotiable: 10–0 and 1–10 cannot merge even though they differ in one solid bit, because their dash positions differ.
Worked problem
Using the Quine–McCluskey method, minimize F(A,B,C,D) = Σm(0, 1, 2, 8, 10, 11, 14, 15). Give all prime implicants, the PI chart, and the minimal cover.
Stage 1 — group by number of 1s (order A B C D):
• 0 ones: m0 = 0000
• 1 one: m1 = 0001, m2 = 0010, m8 = 1000
• 2 ones: m10 = 1010
• 3 ones: m11 = 1011, m14 = 1110
• 4 ones: m15 = 1111
Stage 2, pass 1 — merge adjacent groups (tick terms that combine):
• (0,1): 000–  • (0,2): 00–0  • (0,8): –000  • (2,10): –010  • (8,10): 10–0
• (10,11): 101–  • (10,14): 1–10  • (11,15): 1–11  • (14,15): 111–
All nine pairs formed; no pair exists between groups two steps apart. Pass 2 — merge pairs with identical dash positions:
• 00–0 + 10–0 → –0–0 = {0, 2, 8, 10}   (equivalently –000 + –010 → same term)
• 101– + 111– → 1–1– = {10, 11, 14, 15}   (equivalently 1–10 + 1–11)
• 000– (0,1) cannot merge with anything (dashes must align; no matching partner) — prime.
No pass 3: –0–0 and 1–1– have dashes in different positions. Prime implicants: A′B′C′ (000–), B′D′ (–0–0), AC (1–1–).
Stage 3 — prime implicant chart (X = PI covers minterm):
PI012810111415
A′B′C′ (000–) ✓ ess.XX
B′D′ (–0–0) ✓ ess.XXXX
AC (1–1–) ✓ ess.XXXX
Bold X’s mark columns covered by exactly one PI: m1 ⇒ A′B′C′ essential; m2, m8 ⇒ B′D′ essential; m11, m14, m15 ⇒ AC essential. The three essential PIs already cover every column, so no secondary selection is needed.
Minimum SOP: F = A′B′C′ + B′D′ + AC. ✓ (Check: m10 = 1010 hits B′D′ and AC; no term covers a minterm outside the list — e.g. B′D′ covers only 0000, 0010, 1000, 1010.)
K-map vs Q-M. For 4 variables the K-map is faster by hand and both methods end at the same prime implicants — the map’s adjacency is the one-bit-difference rule. Q-M wins from 5 variables up, when paper adjacency runs out, and whenever a step-by-step auditable record of the minimization is required (exams like that too).

9Logic families — the landscape

A logic family is a set of integrated circuits built with the same transistor technology, voltage levels and I/O rules, designed to interconnect cleanly. The bipolar families — RTL (resistor-transistor, historic), DTL (diode-transistor, historic), TTL (transistor-transistor, the 74xx workhorse), ECL (emitter-coupled, fastest, current-steering, never saturates) — and the MOS families — NMOS (historic, used in LSI memories), CMOS (complementary MOS, near-zero static power, today’s default everywhere).

FamilySpeed (gate tp)Static power/gateNoise marginFan-outStatus
RTL / DTL≈ 12–30 nshigh≈ 0.3–0.5 V≈ 5obsolete
TTL (74xx / 74LS)≈ 9–10 ns (LS: 9 ns)≈ 1–2 mW≈ 0.4 V10 (LS: 20)legacy / teaching
ECL (10K)≈ 1–2 ns≈ 25 mW (high!)≈ 0.2 V≈ 25supercomputer niche
CMOS (74HC, 4000)≈ 8–10 ns (HC)≈ µW (near zero)≈ 1.4 V @ 5 Vvery high (Cin-limited)dominant

Two figures of merit summarize the trade: speed–power product (the “energy per switching event”, tp × PD, measured in picojoules — lower is better, CMOS wins) and the packing density MOS affords (no resistors, tiny transistors), which is why VLSI is MOS and TTL survives mainly as teaching hardware and glue logic.

10Inside a TTL NAND gate

Standard TTL (7400) implements NAND in three stages, all NPN transistors operating between saturation and cut-off:

+VCC (5 V) R1 4 kΩ Q1 A B multi-emitter input stage (does the AND) Q2 phase splitter R2 1.6 kΩ R4 1 kΩ Q3 Q4 D Y totem-pole output Y = (A·B)′ · R3 (130 Ω) limits the Q3 sink current · Q4/D form the active pull-up
Standard TTL 2-input NAND (simplified): Q1’s multi-emitter junctions AND the inputs, Q2 splits the phase, and the Q3/Q4 totem pole drives the output rail-to-rail. Credit: redrawn after the classic 7400 schematic.

Circuit walk-through. Both inputs HIGH (≥ 2 V): Q1’s emitters are reverse-biased, so current through R1 flows into Q2’s base; Q2 saturates; its emitter drives Q3’s base high so Q3 saturates and pulls Y LOW (≈ 0.2–0.4 V), while Q2’s low collector keeps Q4 (through D) cut off. Either input LOW (≤ 0.8 V): Q1 saturates, Q2’s base is held at ≈ 0.2 V so Q2 cuts off, Q3’s base loses drive and cuts off, and Q4 conducts through D to pull Y HIGH (≈ 3.4–3.6 V). Low at either input ⇒ high output: Y = (AB)′. The diode D in series with Q4 adds one VBE drop of headroom, guaranteeing Q4 stays off while Q3 is saturated.

11Noise margin

Gate outputs are never perfect rails and gate inputs never switch at one exact voltage. The industry specifies four DC levels: VOH (minimum high output), VOL (maximum low output), VIH (minimum input guaranteed read as high), VIL (maximum input guaranteed read as low). The safety gaps between what a driver guarantees and what a receiver requires are the noise margins:

Noise margins
NMH = VOH(min) − VIH(min)   (high-state slack)
NML = VIL(max) − VOL(max)   (low-state slack)
Noise on a line eats into the margin; a logic family works reliably only if coupled noise stays under both margins. Whatever noise rides on the output must not push it past the receiver’s VIL/VIH thresholds.
0 V 0.8 2.0 2.4 5 V VOL 0.4 VOH 2.4 – 5 V driver output undefined band VIL 0.8 VIH 2.0 – 5 V receiver input NML NMH
Standard-TTL voltage budget: the driver’s guaranteed bands (green) sit strictly inside the receiver’s accepted bands (blue); the red gaps are the noise margins.
Worked problem
(a) Compute the noise margins of standard TTL given VOH = 2.4 V, VOL = 0.4 V, VIH = 2.0 V, VIL = 0.8 V. (b) Compute the noise margins of 5 V CMOS (74HC) given VOH = 4.95 V, VOL = 0.05 V, VIH = 3.5 V, VIL = 1.5 V. (c) Which family tolerates more noise, and why?
(a) NMH = VOH − VIH = 2.4 − 2.0 = 0.4 V; NML = VIL − VOL = 0.8 − 0.4 = 0.4 V.
(b) NMH = 4.95 − 3.5 = 1.45 V; NML = 1.5 − 0.05 = 1.45 V.
(c) CMOS tolerates about 3.6× more noise in each state. The reason is structural: a CMOS output swings almost to the rails (near 0 V and near VDD) because the on-transistor is a near-ideal switch with no load current flowing, while TTL’s saturated output sits ≈ 0.4 V above ground and its high output is a divider stack (≈ 3.4 V nominal, specified down to 2.4 V worst-case). CMOS’s symmetric switching threshold (≈ VDD/2) also splits the band evenly, so both margins are equal — a deliberate design property.

12Propagation delay

A real gate does not switch instantly: when the input crosses the threshold, the output begins to move only after the propagation delay. It is measured between the 50%-amplitude points of input and output waveforms, and it differs by direction of transition: tpHL (output falling, HIGH→LOW) and tpLH (output rising). The datasheet figure of merit is their average, tp = (tpHL + tpLH)/2. Propagation delay comes mainly from charging and discharging the load capacitances through finite transistor on-resistances — which is why it worsens with fan-out and temperature, and why the speed–power product matters: faster usually means more current, hence more power.

Timing budget in a system
Longest gate path: tpath = Σ (tp of each gate on the critical path)
Highest safe clock: fmax ≈ 1 / tpath  (per register-to-register stage)
Glitches (hazard pulses) arise when reconvergent paths have unequal delays — a direct consequence of nonzero tp; synchronous design hides them with clocks, but the clock period must still clear the longest path.
Worked problem
A 74HC00 NAND gate has tpHL = 9 ns and tpLH = 11 ns. (a) Find tp. (b) A combinational signal path in a system passes through six such gates in series; estimate the maximum safe clock frequency if each register-to-register trip may use that path.
(a) tp = (9 + 11)/2 = 10 ns.
(b) Worst-case path delay = 6 × 10 ns = 60 ns (use the average; a conservative design would take the worst of 11 ns → 66 ns). The clock period must exceed the path delay, so fmax ≈ 1/60 ns ≈ 16.7 MHz (conservatively 1/66 ns ≈ 15.2 MHz). One slow gate in the wrong place can cap the whole system’s clock — which is exactly why datasheets specify tp per gate and why critical paths are kept short.

13Fan-in and fan-out

Fan-in is the number of inputs a gate provides (a 4-input NAND has fan-in 4). It is a topological limit: too many inputs slow the gate (stacked transistors, more emitter area) and, in CMOS, series stacks of more than about 4 MOSFETs become impractically slow, so wide functions are built as trees of narrower gates. Fan-out is the number of standard loads a gate output can drive while still meeting all DC voltage specs. Each load steals current from the driver, in both logic states:

Fan-out from datasheet currents
High-state: NH = |IOH| / IIH   (driver can source IOH; each load draws IIH)
Low-state: NL = |IOL| / IIL   (driver can sink IOL; each load injects IIL)
Fan-out = min(NH, NL)
TTL’s “unit load” convention: 1 UL = 40 µA high / 1.6 mA low. A 74LS00 output is rated 8 UL high, 4 UL low → fan-out 4 LS inputs, or 10 standard TTL inputs.
Worked problem
A standard TTL gate has IOH = −400 µA (source), IIH = 40 µA, IOL = 16 mA (sink), IIL = −1.6 mA. (a) Compute the fan-out. (b) How many such gates can one output drive if it must also drive one 74LS input (IIH = 20 µA, IIL = 0.4 mA)?
(a) NH = 400 µA / 40 µA = 10; NL = 16 mA / 1.6 mA = 10. Fan-out = min(10, 10) = 10. (TTL is deliberately designed so both states bind at the same count.)
(b) The LS input costs less than a standard input in both states. High: remaining source budget = 400 − 20 = 380 µA ⇒ 380/40 = 9.5 → 9 standard gates (integer rounding down). Low: remaining sink budget = 16 − 0.4 = 15.6 mA ⇒ 15.6/1.6 = 9.75 → 9. Answer: 9 standard TTL gates plus the one LS gate. The high-state budget bound first this time (9.5 < 9.75) — always check both states; the smaller governs.
CMOS fan-out is a different animal. CMOS inputs draw essentially zero DC current, so DC fan-out is enormous (hundreds); the practical limit is AC fan-out — each added input adds input capacitance that the driver must charge/discharge, directly lengthening tp. Rules of thumb keep CMOS fan-out to ~10–50 for speed reasons, not current reasons.

14CMOS: the inverter

The CMOS inverter is one PMOS transistor (pull-up) and one NMOS transistor (pull-down) in a complementary pair: their gates are tied together (the input A), their drains together (output Y), the PMOS source to VDD, the NMOS source to ground. The two never conduct simultaneously:

CMOS inverter operation
A = 0 → PMOS ON (VGS = −VDD), NMOS OFF ⇒ Y tied hard to VDD = 1
A = 1 → NMOS ON, PMOS OFF ⇒ Y tied hard to GND = 0
Consequences: output is rail-to-rail (large noise margins, section 11); static current is ~0 because the path VDD→Y→GND always has one OFF transistor — power is drawn mostly while switching (dynamic, charging load capacitance); switching threshold sits near VDD/2 and is movable by sizing W/L of the pair.
+VDD P MOS N MOS A Y = A′ pull-up (ON when A=0) pull-down (ON when A=1) exactly one transistor conducts in each state — static current ≈ 0
The CMOS inverter: complementary MOSFET pair sharing gate (input) and drain (output).
Why CMOS displaced TTL. Rail-to-rail outputs ⇒ ~1.4 V noise margins at 5 V (vs TTL’s 0.4 V); zero static current ⇒ power scales with switching activity, not with circuit size; no resistors ⇒ tiny silicon area, so whole systems fit on one chip; and the same complementary recipe extends uniformly to every gate (section 15).

15CMOS NAND and NOR gates

CMOS generalizes by a fixed recipe: for a “low-true” output condition, pull down with a series chain of NMOS in the pull-down network, and pull up with a parallel bank of PMOS (and the dual for OR). An n-input gate therefore needs 2n transistors — n NMOS in the pull-down network (PDN), n PMOS in the pull-up network (PUN).

CMOS gate construction table
NAND (AB)′: NMOS A, B in series; PMOS A, B in parallel. Output goes low only if both inputs are 1 (both NMOS on).
NOR (A+B)′: NMOS A, B in parallel; PMOS A, B in series. Output goes low if either input is 1.
Transistor count: NAND2 = NOR2 = 4; NAND3/NOR3 = 6; NANDn/NORn = 2n.
Why NAND is the preferred CMOS gate: in the NAND, the series stack is NMOS (electrons, ~2–3× the mobility of holes); in the NOR, the series stack is PMOS (holes, slow) — so a NAND of the same input count is faster and needs less sizing compensation. This asymmetry is why real CMOS libraries lead with NAND and inverters, and why “NAND is the CMOS universal gate” has a physical, not just logical, basis.
+VDD P A P B N A N B A B Y = (AB)′ parallel pull-up series pull-down Y is pulled LOW only when A = B = 1 — the NAND condition
CMOS 2-input NAND: series NMOS stack (A, B) and parallel PMOS bank. Four transistors total; the NOR is its exact dual.
Worked problem
(a) Using the CMOS construction recipe, describe the transistor network of a 2-input NOR gate and verify its truth table for all four inputs. (b) Why is a 4-input NOR considered poor CMOS design practice, and what is the standard fix? (c) How many transistors does a 4-input NAND require?
(a) NOR Y = (A+B)′: pull-down network = NMOS A and NMOS B in parallel from Y to ground (either input alone can pull Y to 0); pull-up network = PMOS A and PMOS B in series from VDD to Y (Y is pulled to 1 only when both inputs are 0, i.e. both PMOS conduct). Truth-table check: AB = 00 → PMOS both on, NMOS both off → Y = 1 ✓; 01 or 10 → one NMOS on pulls Y to 0; the series PMOS chain is broken → Y = 0 ✓; 11 → both NMOS on, both PMOS off → Y = 0 ✓. That is (A+B)′ exactly.
(b) The NOR’s pull-up is a series PMOS chain. PMOS hole mobility is ~2–3× lower than NMOS electron mobility, and series transistors add their on-resistances — so a 4-high PMOS stack is both slow (long tpLH) and demands bulky transistor sizing to compensate. The standard fix: build the wide NOR as NAND + inverters (De Morgan: (A+B+C+D)′ = A′B′C′D′ — invert each input, NAND them, invert the output), or use a compound AOI/OAI gate.
(c) 2n = 8 transistors (4 NMOS series + 4 PMOS parallel).

16Formula & design-recipe sheet

Boolean identities most used (from sections 2–3)
x + x′y = x + y  •  x + yz = (x+y)(x+z)  •  xy + x′z + yz = xy + x′z (consensus)
(x+y)′ = x′y′  •  (xy)′ = x′ + y′  •  mi′ = Mi  •  F = Σm(S) ⇔ F′ = Σm(complement of S)
K-map recipe (2–4 variables)
1. Gray-code the axes (00, 01, 11, 10). 2. Plot 1s (and X’s). 3. Cover every 1 with the largest legal power-of-two rectangle (edges/corners wrap). 4. Prefer fewer, bigger groups; X’s are optional helpers. 5. Read each group’s term = literals that stay constant.
Quine–McCluskey recipe
Group by 1-count → merge pairs differing in one solid bit with equal dashes → unticked survivors are PIs → PI chart → take essential PIs (sole cover of some minterm) → cover leftovers with cheapest PIs.
Gate specifications (from sections 11–13)
NMH = VOH − VIH  •  NML = VIL − VOL  •  tp = (tpHL + tpLH)/2  •  fmax ≈ 1/Σtp(critical path)
Fan-out = min(|IOH|/IIH, |IOL|/IIL)  •  speed–power product = tp × PD (pJ)
CMOS construction recipe
NAND: series NMOS, parallel PMOS (2n transistors). NOR: parallel NMOS, series PMOS. Inverter: one of each. Series stacks: prefer them in NMOS → wide logic should be NAND-shaped. Static power ≈ 0; dynamic power ∝ CloadVDD2f.