Skip to content

Logic gates and TTL / CMOS families

A logic gate takes bits (0 and 1) and outputs a bit by a fixed rule — the truth table. In lab you do not leave that table on paper: you build it with a TTL or CMOS IC.

ANSI symbols (the AND “D” body is the site mark): lines on the left = inputs, line on the right = output.

GateFunctionOutput is 1 when…Typical IC (TTL 74xx)
ANDF = A · Bevery input is 17408
ORF = A + Bat least one input is 17432
NOTF = NOT Athe input is 07404
NANDF = NOT (A · B)the inputs are not all 17400
NORF = NOT (A + B)every input is 07402
XORF = A XOR Bthe inputs differ7486

XNOR (F = NOT (A XOR B)) is 1 when the inputs are equal. That is even parity — the same idea as Hamming.

ABANDORNANDNORXORXNOR
00001101
01011010
10011010
11110001

NOT (1 input): 0 → 1, 1 → 0. The bubble on the symbol is inversion.

The gate on paper is the same. The package is not: TTL and CMOS are two ways to make 0 and 1 in silicon. Midterm II and lab ask for the family, not only the symbol.

Platform Role Strength Limit
TTL (74xx, 74LS) Bipolar transistors. Classic 5 V breadboard parts Rugged, usable output current, huge Proteus library Higher static power; HIGH is not a full 5 V; do not mix blindly with 4000 CMOS
CMOS (4000, 74HC) MOSFETs. Low power, dominant today Almost no static current; 4000 series VDD from ~3 V to 15 V Floating inputs oscillate; ESD sensitive; 4000 is slower than 74LS
74HCT (TTL-compatible CMOS) CMOS with TTL-like input thresholds Lets a 74LS output drive an HC-style input at 5 V Still a 5 V story; it is not a 3.3 V ↔ 5 V translator
FamilyMax VIL (still 0)Min VIH (already 1)Typical LOW / HIGH out
TTL 74LS0.8 V2.0 V~0.35 V / ~3.4 V
CMOS 74HC @ 5 V1.5 V3.5 V~0 V / ~5 V
CMOS 4000 @ 5–15 V~30 % of VDD~70 % of VDDnearly rail to rail

A TTL HIGH (~3.4 V) may not count as 1 for 74HC (wants ≥ 3.5 V). Lab fix: 74HCT, or do not mix.

  • 74xx — original TTL (rarely stocked now).
  • 74LS — Low-power Schottky. Default for gate labs.
  • 74HC — High-speed CMOS. Same pinout as 74, different electrical family.
  • 74HCT — HC with TTL input thresholds.
  • 40xx / 45xx — “old” CMOS (CD4000). Different pinout from 74.

Typical 74LS00 DIP-14 (four 2-input NANDs): VCC pin 14, GND pin 7.

Messy exam function (before simplifying):

x = (NOT A)·B + A·(NOT B)·C + A·B·C

  1. Draw 2-input AND / OR / NOT (split a 3-input AND into two 2-input ANDs).
  2. Count gates — that is what they grade if they ask for “minimum”.
  3. Only then simplify with algebra or Karnaugh, and redraw.

4-bit parity (cascaded XOR) is the same language as Hamming.

Continue with truth tables and canonical forms. XOR and parity come back in the Hamming assignment (partial I; sidebar Assignments).

Mark the unit on the study path.