DLD Notes: PLDs and Memory

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

RAM (SRAM and DRAM cells), memory decoding and memory maps, ROM, and the programmable-logic family — PROM, PAL, PLA and FPGAs — with fuse-map worked problems solved step by step, including the transistor-level story of how a bit is actually stored.

Contents
  1. Memory and PLDs — the big picture
  2. RAM basics and organization
  3. The SRAM cell
  4. The DRAM cell and refresh
  5. Memory decoding
  6. Memory maps
  7. ROM and its family
  8. Programmable logic devices — basic concepts
  9. PROM as a PLD
  10. Programmable Array Logic (PAL)
  11. Programmable Logic Array (PLA)
  12. FPGA basics
  13. PROM vs PAL vs PLA vs FPGA
  14. Formula & design-recipe sheet

1Memory and PLDs — the big picture

Digital systems need two kinds of “programmable” silicon. Memory stores data: rows of bits addressed by location, read and written by the processor (sections 2–7). Programmable logic devices (PLDs) store a circuit: uncommitted AND–OR arrays whose interconnections are blown or set like fuses so one chip implements an arbitrary Boolean function (sections 8–13). The two are the same idea viewed from different angles — a ROM is literally a memory that has been promoted into a lookup-table logic element, and a modern FPGA is an ocean of tiny memories (LUTs) wired as logic.

The unit’s one-line map
Volatile storage: SRAM (6 transistors, fast, caches)  •  DRAM (1 transistor + capacitor, dense, main memory)
Non-volatile: ROM family (mask, PROM, EPROM, EEPROM, flash)
Logic arrays: PROM (fixed AND, programmable OR) → PAL (programmable AND, fixed OR) → PLA (both programmable) → FPGA (LUTs + routing fabric)
Everything here rests on Unit 1: an array of ANDs generates product terms (minterms and beyond), an OR collects them — a PLD is the two-level AND–OR minimization story cast in silicon.

2RAM basics and organization

RAM (Random-Access Memory) stores 2n words of m bits each; any word can be read or written in the same fixed time regardless of its address (hence random-access, in contrast to tape’s sequential access). An n-bit address selects one of 2n words via internal decoding; m data lines carry the word; and control pins govern the operation: CS (chip select — only the selected chip drives its data lines), WE (write enable — when active, the data lines are written into the selected word; when inactive, the chip is read) and often OE (output enable). RAM is volatile: contents vanish when power is removed, unlike ROM. The two cell technologies inside RAM are SRAM (section 3) and DRAM (section 4).

Capacity arithmetic
A 2n × m memory: n address lines, m data lines, stores 2n·m bits.
K = 210 = 1024, M = 220, G = 230.  1 KB = 8 Kbit.
Depth expansion needs more address lines; width expansion needs more data lines — both are done with chip-select decoding (section 5).
Worked problem
(a) How many address and data pins does a 64K × 8 RAM chip need, and how many bits does it store? (b) How many 16K × 8 chips are required to build a 64K × 8 memory, and how should the extra address lines be used?
(a) 64K = 64 × 1024 = 65 536 = 216 words ⇒ 16 address pins (A15…A0); 8 bits per word ⇒ 8 data pins (D7…D0). Capacity = 216 × 8 = 65 536 × 8 = 524 288 bits = 512 Kbit = 64 KB.
(b) 64K/16K = 4 chips. Two address lines are left over: A15A14 must be decoded (e.g. by a 2:4 decoder) to generate the four chip-select signals, while the common lines A13…A0 drive all four chips in parallel. A15A14 = 00 selects chip 0 (addresses 0000H–3FFFH), 01 → chip 1 (4000H–7FFFH), 10 → chip 2 (8000H–BFFFH), 11 → chip 3 (C000H–FFFFH) — exactly the memory-decoding problem of section 5 in miniature. The data lines of all four chips are tied together (three-state outputs: only the chip with CS active drives the bus).

3The SRAM cell

A static RAM (SRAM) cell stores one bit in a latch made of two cross-coupled inverters (four transistors: two NMOS pull-downs, two PMOS pull-ups), with two access transistors connecting the storage nodes to the bit lines when the word line is asserted — six transistors per bit, the classic 6T cell. The state is static: as long as power is applied, the inverters hold the bit indefinitely, no refresh needed. To write, the bit lines are driven to the desired complementary values and the word line is raised, overpowering the cell’s inverters. To read, the bit lines are precharged and the cell slightly discharges one of them; a sense amplifier detects which line moved.

BL′ BL inv inv Q (stored bit) Q′ T1 T2 word line (WL) two cross-coupled inverters store the bit — T1/T2 connect it to the bit lines while WL = 1
The 6T SRAM cell: inverters cross-coupled through the Q and Q′ nodes; access transistors T1/T2 gate the cell onto the complementary bit lines. Credit: redrawn after the standard CMOS 6T cell schematic.

Why SRAM is fast but expensive. No sense-and-rewrite dance, no capacitor charging delay — a read is a direct logic-level access, so SRAM runs at the front of the memory hierarchy (CPU caches). The price is silicon: 6 transistors per bit (versus DRAM’s 1), so SRAM holds roughly 4–6× fewer bits per mm² and costs correspondingly more. It draws small but nonzero static current (leakage through the always-on inverter stack), unlike DRAM whose idle cost is only refresh.

4The DRAM cell and refresh

A dynamic RAM (DRAM) cell is one access transistor and one storage capacitor (1T1C): the bit lives as charge (or its absence) on a tiny capacitor of order 25–50 fF. One transistor per bit makes DRAM 4–6× denser and far cheaper per bit than SRAM — which is why main memory is DRAM. Two physics problems follow. First, the read is destructive: reading dumps the capacitor onto the bit line, so the sense amplifier must rewrite the value after every read. Second, the capacitor leaks charge through junctions, so the bit would fade in milliseconds — the cell must be periodically refreshed: read every row and write it back before the charge decays (typically within a 64 ms window).

Refresh arithmetic
Rows × columns = cell count; refresh touches one row (all cells in it) at a time.
Interval per row = refresh window / number of rows.
Overhead = (rows × trefresh) / refresh window.
Address multiplexing: to save pins, DRAMs split each address into row address (RAS) and column address (CAS) strobed in two halves — a 16K×1 chip needs only 7 address pins for 14 bits.
Worked problem
A 16K × 1 DRAM has its cells organized as a 128 × 128 array, must have every row refreshed within a 64 ms window, and one refresh cycle (read + rewrite of a row) takes 400 ns. Find (a) how often each row must be refreshed, (b) the fraction of memory time consumed by refreshing, and (c) why the interior array is square (128 × 128) rather than, say, 16384 × 1.
(a) 64 ms / 128 rows = 64 000 µs / 128 = 500 µs between row refreshes. A refresh controller (or the CPU in burst mode) must issue one row-refresh every 500 µs, cycling through all 128 row addresses.
(b) Time spent refreshing per 64 ms window = 128 rows × 400 ns = 51 200 ns = 51.2 µs. Fraction = 51.2 µs / 64 ms = 0.0008 = 0.08% — refresh steals well under a tenth of a percent of the bandwidth, which is why DRAM’s maintenance burden is acceptable.
(c) One refresh operation restores an entire row at once (all 128 cells sharing that row line are sensed and rewritten in parallel), so the refresh work scales with the number of rows, not the total capacity. A 16384 × 1 layout would need 16 384 refreshes per window (one per row — 64 ms/16384 ≈ 3.9 µs apart, and ≈ 6.4 ms of overhead); squaring the array to 128 × 128 cuts refresh to 128 operations. The square shape minimizes rows (and address-multiplexing pin count) for a given capacity.
SRAM vs DRAM in one line. SRAM: 6T latch, fast, no refresh, low density, static leakage → caches. DRAM: 1T1C, dense and cheap, destructive read + periodic refresh → main memory. Neither survives power-off — that is ROM’s job (section 7).

5Memory decoding

A system with more than one memory chip must guarantee that exactly one chip responds to any address. This is memory decoding (address decoding): the CPU’s address bus is split — the high bits go to a decoder (typically a 74LS138 3:8 decoder or larger) that generates the chip-select (CS) signals, and the low bits go directly to every chip to select the word inside the selected chip. With k decoded high bits, each decoder output covers a block of 2(bus − k) addresses — an 8 KB block in a 64 KB space decoded by A15A14A13, for instance. All chips’ data lines are three-state and bussed together; only the chip whose CS is active drives the bus.

address bus A15…A0 A15 A14 A13 74LS138 3 : 8 decoder Y0 Y1 Y2 Y3 chip 0 — RAM 0000H – 1FFFH (8 KB) chip 1 — RAM 2000H – 3FFFH (8 KB) chip 2 — RAM 4000H – 5FFFH (8 KB) chip 3 — ROM 6000H – 7FFFH (8 KB) A12…A0 shared low address bits (location within the selected chip)
Address decoding in a 64 KB space: the top three address bits drive a 3:8 decoder; each output enables one 8 KB chip, and the low 13 bits are shared by all chips. Credit: redrawn after the standard 74LS138 memory-decoding scheme.
Worked problem
A 64 KB system (16-bit address bus) uses a 74LS138 with A15, A14, A13 as its select inputs (and enables tied active). A RAM chip’s CS must be asserted for addresses 2000H–3FFFH. (a) Which decoder output drives that CS? (b) Derive the address range that output covers and confirm it is 8 KB. (c) How many such outputs would a full 64 KB map use?
(a) 2000H = 0010 0000 0000 00002: A15 = 0, A14 = 0, A13 = 1. The decoder output numbered 001 = Y1 is active for exactly that combination, so Y1 → RAM CS.
(b) Y1 is active when A15A14A13 = 001 and A12…A0 range over all 213 = 8192 values: addresses 001 x xxx xxxx xxxx xxxx = 2000H–3FFFH ✓ (2000H + 2000H − 1 = 3FFFH ⇒ 8192 bytes = 8 KB).
(c) Eight outputs Y0…Y7, covering the eight consecutive 8 KB blocks 0000H–1FFFH through E000H–FFFFH — three address lines partition the whole 64 KB space with no gaps and no overlaps (full decoding).
Full vs partial (linear) decoding. Full decoding decodes all high bits — every address lands on exactly one chip. Partial decoding leaves some high bits unconnected to save a decoder: a chip responding to A15A14 = 10 (ignoring A13) appears at 8000H and 8000H + 2000H = A000H, BFFFH… — a folded (aliased) image. It is cheap and sometimes deliberate, but software must know about the shadows.

6Memory maps

A memory map is the allocation table of the address space: which address range belongs to ROM, which to RAM, which to I/O. Two design directions exist. From map to wiring: given desired ranges, find the fixed address-bit patterns that characterize each range and decode them (this is a K-map problem on the high address bits — don’t-cares included — exactly like Unit 1). From wiring to map: given a decoder design, compute the range each chip-select covers — the skill exams love. The two range formulas:

Range arithmetic
A block selected by bits A15…A12 = p q r s covers pqrs 0000…0 to pqrs 1111…1 (hex: pqrs0 to pqrsF for the 4 high bits).
Size of a block with k decoded high bits (bus width n) = 2n−k bytes.
Start = pattern × 2low bits; End = Start + Size − 1.
Power-of-two sizes only — a 12 KB chip cannot be selected by a single clean pattern and needs two select signals (8K + 4K) or a larger granularity.
Worked problem
In a 64 KB system, a chip’s select logic asserts when A15A14A13A12 = 1010. (a) Compute the exact address range covered and the block size. (b) A ROM occupies 0000H–3FFFH and a RAM occupies 6000H–7FFFH; give the required A15A14A13A12 patterns for each and express the ROM select as a minimal Boolean function of A15, A14. (c) What is selected between 4000H and 5FFFH in this map?
(a) Pattern 1010 fixes the top four bits; the remaining 12 bits are free: addresses 1010 0000 0000 0000 = A000H up to 1010 1111 1111 1111 = AFFFH. Size = 216−4 = 4 KB (AFFFH − A000H + 1 = 1000H = 4096 ✓).
(b) ROM 0000H–3FFFH = 001 1…: A15A14A13A12 runs 0000, 0001, 0010, 0011 — i.e. A15 = 0, A14 = 0 with A13A12 free ⇒ select = A15′ A14′ (one AND of two literals — the K-map over A15A14A13A12 collapses to exactly this). RAM 6000H–7FFFH = 011 0… through 011 1…: A15A14A13 = 011 ⇒ select = A15′ A14 A13.
(c) 4000H–5FFFH = 010 0… to 010 1…: pattern A15A14A13 = 010, A12 free. Neither the ROM (A14 = 0 requires 00) nor the RAM (011) matches, so this range is unmapped in the given map — either free space for expansion or a bus conflict waiting for an accidental access, which is why careful maps decode the whole space.

7ROM and its family

Read-Only Memory holds fixed contents: an address presented to it returns the stored word, and (in normal operation) nothing can write it. The internal structure is a fixed AND array (a full 1-of-2n decoder generating every minterm of the address) followed by an OR array holding the data. Because a ROM’s output is a fixed function of its address inputs, a ROM is a combinational circuit: a 2n × m ROM implements any collection of m functions of n variables — address = input vector, stored word = output vector. The hardware family, ordered by reprogrammability:

Worked problem
(a) A 64K × 8 ROM: how many address lines, how many stored bits? (b) You must implement two functions F1(A,B,C,D) = Σm(0, 5, 10, 15) and F2(A,B,C,D) = Σm(1, 2, 4, 8) using a ROM. What size ROM suffices, and what is stored at address 5 and address 15?
(a) 64K = 216 ⇒ 16 address lines (A15…A0); contents = 216 × 8 = 512 Kbit.
(b) Four variables ⇒ 24 = 16 addresses; two outputs ⇒ words of 2 bits ⇒ a 16 × 2 ROM suffices. Address i stores the pair (F2, F1) evaluated at the input combination i = ABCD.
• Address 5 = 0101 (A = 0, B = 1, C = 0, D = 1): it is in F1’s list ⇒ F1 = 1; not in F2’s list ⇒ F2 = 0. Stored word: 01 (F2F1).
• Address 15 = 1111: in F1’s list ⇒ 1; not in F2’s ⇒ 0. Stored word: 01.
(For completeness, address 1 = 0001: not in F1’s list, in F2’s ⇒ word 10.) Note what ROM bought us: no minimization at all — every minterm of both functions is physically present, which is simple but wasteful when functions are sparse; the PLDs of sections 9–11 recover the economy.

8Programmable logic devices — basic concepts

A programmable logic device (PLD) is an IC containing two-level AND–OR structures whose interconnections are programmable. Every input is buffered to provide the true and complemented form; a grid of horizontal product-term lines crosses vertical input lines; at each crossing sits a fuse (or antifuse/EEPROM cell). Where a fuse is left intact, that input feeds the AND gate; where it is blown, the input is disconnected. The AND outputs (product terms) feed OR gates, whose outputs are the device’s outputs. Programming a PLD = choosing which fuses survive.

The three classic architectures (distinguished by which array is programmable)
PROM: AND array fixed (full address decoder = all minterms); OR array programmable.
PAL: AND array programmable; OR array fixed (each output gets a fixed, small number of product terms).
PLA: AND array programmable and OR array programmable (terms can be shared among outputs).
Drawing convention used in all PLD diagrams: a × at a crossing = intact fuse (connected); no mark = blown fuse. An AND term with all fuses intact produces 0 (each variable ANDed with its own complement) — that is how unused terms are disabled.
A A′ B B′ C C′ P1 P2 P3 × × × × × × AND P P1 = A·B′ P2 = A′·C P3 = B·C → P = AB′ + A′C + BC × = intact fuse no × = blown
PLD notation: vertical input lines (true and complement from input buffers), horizontal product-term lines, fuses marked × where connected. The AND array here is programmed for P = AB′ + A′C + BC.

9PROM as a PLD

A PROM (Programmable ROM) used as a logic device has a fixed AND array — the address decoder, generating every one of the 2n minterms whether needed or not — and a programmable OR array: for each output, the user fuses in exactly which minterm lines are ORed together. Writing a function into a PROM therefore requires no minimization whatsoever: list the function’s minterms, store a 1 in each corresponding word. That is simultaneously its strength (any n-input, m-output function set fits a 2n × m PROM, no design effort) and its weakness (every minterm exists in hardware even when the minimized function needs three terms — slow, power-hungry, and area-wasteful, and unused decoder entries cannot be removed). PROM is the natural fit when the function is large and irregular, or when the “logic” is really a lookup table (code conversion tables, trigonometric tables).

Worked problem
Using an 8 × 2 PROM (three inputs A, B, C — eight word lines; two-bit output words), implement F1(A,B,C) = Σm(0, 1, 3, 5) and F2(A,B,C) = Σm(2, 3, 7). Give the complete fuse map (the stored contents of all eight words) and verify words 3 and 4 against both functions.
Address i = ABC; word bits = (F2, F1). A word bit is 1 = OR-array fuse intact (minterm line connected to that output); 0 = fuse blown.
Address ABCF1 bitF2 bitStored word (F2 F1)
0 (000)1001
1 (001)1001
2 (010)0110
3 (011)1111
4 (100)0000
5 (101)1001
6 (110)0000
7 (111)0110
Verification. Word 3 (ABC = 011): F1’s list contains 3 ⇒ F1 = 1 ✓; F2’s list contains 3 ⇒ F2 = 1 ✓ → word 11 matches the table. Word 4 (ABC = 100): 4 is in neither list → word 00 ✓.
What the PROM physically holds: eight decoded minterm lines; for output F1, the OR array fuses connect lines 0, 1, 3, 5; for F2, lines 2, 3, 7 — five blown fuses on F1’s OR row and five on F2’s. Note the fixed AND array’s cost: all 8 minterm lines exist although the minimized form needs far less — F1 = A′B′ + A′C + B′C covers {0,1}, {1,3}, {1,5} = {0,1,3,5} with three two-literal terms, and F2 = BC + A′B covers {3,7} and {2,3} with just two. A PROM never exploits minimization — it brute-forces the truth table, which is exactly why PAL/PLA exist.
PROM vs ROM naming. Mask ROM, PROM, EPROM, EEPROM differ only in how the contents get in and whether they can change; as logic devices they behave identically — fixed AND array, programmable OR array. Exams usually say “ROM as a PLD” and mean this structure.

10Programmable Array Logic (PAL)

A PAL inverts the PROM trade: the AND array is programmable (so only the product terms you actually need are generated — the minimization of Unit 1 becomes hardware savings) while the OR array is fixed: each output pin is hard-wired to a specific, small number of AND-term lines (commonly 2 to 8 terms per output). The consequences: PALs are fast and cheap, and you design for them — each output function must fit within its term budget, terms cannot be shared between outputs (each output owns its AND lines), and a function needing more terms than the OR provides must be split across two outputs and combined externally. The classic small PAL: inputs with buffers, n×2m fuse crossings, and m outputs each ORing a fixed set of terms.

Worked problem
A PAL has inputs A, B, C (true and complement available) and two outputs, each driven by a fixed 3-input OR fed from dedicated AND lines: output F1 = P1 + P2 + P3; output F2 = P4 + P5 + P6. Implement F1(A,B,C) = Σm(3, 5, 6, 7) and F2(A,B,C) = Σm(0, 1, 2). Minimize both, give the complete fuse map as a table (intact/blown for every fuse), and verify F1.
Minimize. F1: 1s at 011, 101, 110, 111 → K-map pairs {3,7} = BC, {5,7} = AC, {6,7} = AB ⇒ F1 = BC + AC + AB (three terms — exactly fits the 3-term OR). F2: 1s at 000, 001, 010 → pair {0,1} = A′B′, pair {0,2} = A′C′ ⇒ F2 = A′B′ + A′C′ (two terms; the third line is spare).
Fuse map (× = intact fuse = that literal connected to the term; blank = blown. An unused term has all fuses intact ⇒ term = 0, disabling it):
TermOutputAA′BB′CC′Realized product
P1F1××AB
P2F1××AC
P3F1××BC
P4F2××A′B′
P5F2××A′C′
P6F2××××××0 (all intact — unused)
Verify F1 = AB + AC + BC against Σm(3, 5, 6, 7): AB = 1 on 110, 111; AC on 101, 111; BC on 011, 111 ⇒ union = {3, 5, 6, 7} ✓; no term covers a 0 (e.g. m4 = 100: AB = AC = BC = 0 ✓). Spot-check F2: 000 → A′B′ = 1 ✓; 011 → A′B′ = 0 (B = 1), A′C′ = 0 (C = 1) → F2 = 0 ✓ (minterm 3 is not in F2’s list).
What the fixed OR cost us: nothing here — but had F2 needed four terms, or had both functions wanted the same product term (say AB), this PAL could not deliver: F2 would have to borrow a second output pin, or the design moves to a PLA (next section), where the OR array is programmable and terms are shared.

11Programmable Logic Array (PLA)

The PLA is the most flexible of the three: both arrays programmable. The AND array generates exactly the product terms the minimized functions need (any SOP terms, not just full minterms), and the programmable OR array lets any term feed any output — so terms shared by several outputs are generated once. The design procedure: minimize every output function (K-map/Q-M), pool the product terms of all outputs, discard duplicates, check that the count fits the device’s AND-array size and that each output’s needed term count fits its OR inputs, then program both fuse maps. A PLA with n inputs, k product terms and m outputs implements any set of m functions whose combined minimal SOP needs at most k distinct terms.

PLA design recipe
1. Minimize each output function independently (SOP).
2. Pool the product terms; delete duplicates (one AND line per distinct term).
3. If terms ≤ device AND lines and each output’s term count ≤ its OR inputs → program.
4. Fuse map: AND array — mark which literals build each term; OR array — mark which terms feed each output.
A PLA can even implement a function and its complement cheaply when they share terms (POS from the complement’s SOP via De Morgan) — a favourite textbook trick.
A A′ B B′ C C′ P1 P2 P3 × × × × × × × × × × F1 F2 AND array: P1 = AB, P2 = A′C, P3 = BC · OR array: F1 = P1 + P2, F2 = P1 + P3 — term P1 is shared
PLA fuse map for the worked problem: three shared product terms, two outputs. × marks intact fuses in both arrays. Credit: drawn in the classic PLA notation style (Mano fig. 7.x).
Worked problem
Using a PLA with three inputs (A, B, C and complements), three product terms (P1, P2, P3) and two outputs (each an OR of any subset of the three terms), implement F1(A,B,C) = Σm(1, 3, 6, 7) and F2(A,B,C) = Σm(3, 6, 7). Minimize, show the complete AND-array and OR-array fuse map as a table, verify both outputs on minterms 3 and 4, and state what the shared structure saves compared with a PAL with two terms per output.
Minimize. F1: 1s at 001, 011, 110, 111. Pairs: {1,3} = A′C, {6,7} = AB (m3 and m7 are left as the quad’s residues: {3,7} = BC also possible, but the two-pair cover already suffices) ⇒ F1 = AB + A′C. Check: AB covers 110, 111; A′C covers 001, 011 ⇒ {1, 3, 6, 7} ✓. F2: 1s at 011, 110, 111 → pairs {3,7} = BC, {6,7} = AB ⇒ F2 = AB + BC. Check: AB = 110, 111; BC = 011, 111 ⇒ {3, 6, 7} ✓.
Pool the terms: {AB, A′C, BC} — AB is needed by both outputs, so it is generated once as P1. Total distinct terms = 3 ≤ 3 available ✓; each output needs 2 terms ≤ OR inputs ✓.
AND-array fuse map (× = intact fuse; blank = blown):
TermAA′BB′CC′Realized product
P1××AB
P2××A′C
P3××BC
OR-array fuse map (× = term connected to that output):
TermF1F2
P1 = AB××
P2 = A′C×
P3 = BC×
Verification. Minterm 3 (011): AB = 0, A′C = 1, BC = 1 ⇒ F1 = 0 + 1 = 1 ✓ (3 ∈ F1 list), F2 = 0 + 1 = 1 ✓ (3 ∈ F2 list). Minterm 4 (100): AB = 0, A′C = 0, BC = 0 ⇒ F1 = 0 ✓ (4 ∈ list), F2 = 0 ✓.
What sharing saves: a PAL with a fixed 2-term OR per output would have to give F1 its own AB line and F2 its own AB line — four AND lines total. The PLA’s programmable OR array reuses P1 in both outputs: three AND lines instead of four. On a device with a small term budget (or many outputs sharing terms), that is the difference between fitting and not fitting — the PLA’s whole reason to exist.

12FPGA basics

A Field-Programmable Gate Array (FPGA) abandons fixed two-level arrays altogether. Its fabric is a vast grid of configurable logic blocks (CLBs) connected by programmable routing channels, each CLB containing look-up tables (LUTs), flip-flops, and carry chains. A k-input LUT is simply a 2k × 1 SRAM: you store the truth table of any k-variable function in the SRAM bits, and the address inputs are the function’s inputs — the MUX reading the SRAM is the logic. A 6-input LUT (the common modern size) can thus implement any Boolean function of 6 variables in one level of logic; wider functions are decomposed across several LUTs. Because configuration lives in SRAM, FPGAs are re-programmable infinitely and even reconfigurable at run time — and they lose contents at power-off, so they boot their bitstream from an external flash. The rest of the CLB (flip-flops after the LUT, fast carry logic, block RAM, DSP slices, I/O pads) turns the fabric into full sequential systems.

LUT = truth table in silicon
k-input LUT = 2k SRAM bits + 2k : 1 MUX. Any function of k variables fits.
Configured function F: SRAM bit at address i = F(inputs = i).
Contrast: PAL/PLA minimize first, then program sparse AND–OR arrays (few transistors, fixed forever); FPGA store the whole truth table (dense SRAM, rewritable, wasteful per function but universal). VLSI economics chose SRAM density for FPGAs.
Worked problem
Configure one 3-input LUT to implement F(A,B,C) = Σm(0, 2, 3, 5, 6). (a) List the 8 SRAM bits by address. (b) Express the configuration as one hex byte. (c) Confirm the LUT’s output for input 101.
(a) Address i = ABC holds SRAM bit = F(i):
Address ABC000001010011100101110111
SRAM bit10110110
(1s at minterms 0, 2, 3, 5, 6; 0s elsewhere.)
(b) Reading address 7 → 0 as the MSB down to address 0 → 1 as the LSB: 1011 0110 = 0xB6. The LUT is literally programmed by writing B6H into its configuration SRAM.
(c) Input 101 = address 5 → SRAM bit 5 = 1, and indeed minterm 5 ∈ Σm(0, 2, 3, 5, 6) ✓. The 8:1 MUX inside the LUT selects that bit with (A, B, C) as the select lines — no gates, no fuses, just a memory read.

13PROM vs PAL vs PLA vs FPGA

One table to end the argument — each device is the answer to “which arrays do I let the user program, and at what cost in silicon and flexibility?”

DeviceAND arrayOR arrayProgramming modelStrengthsWeaknesses
PROM / ROMfixed (full minterm decoder)programmablestore whole truth table, no minimizationzero design effort; any n-in m-out function set2n minterms always present — slow, wasteful for sparse functions
PALprogrammablefixed (few terms per output)minimize first; each output owns its termsfast, cheap, high fuse efficiency for single-output logicno term sharing; fixed term budget per output
PLAprogrammableprogrammableminimize, pool and share terms across outputsmaximum two-level flexibility; shared termstwo programmable arrays → slower, larger, costlier
FPGAno fixed arrays — LUTs (SRAM truth tables) + flip-flops + routingbitstream configures LUT contents and switch boxesreprogrammable, huge capacity, sequential systems on one chipSRAM volatility (needs boot flash), routing delay variability, power
Choosing in an exam answer. Implementing many independent output functions of the same few inputs with regular structure → PROM. Single-output or per-output functions that fit small term budgets, fastest and cheapest → PAL. Several outputs sharing product terms, tight term budget → PLA. Anything sequential, large, or subject to change → FPGA. Justify with the fuse-map/term counts, not vibes.

14Formula & design-recipe sheet

Memory arithmetic
2n × m memory: n address lines, m data lines, 2n·m bits total  •  K = 210, M = 220
Refresh: per-row interval = window / rows; overhead = (rows × tref) / window
SRAM = 6T latch (fast, cache)  •  DRAM = 1T1C (dense, destructive read, refresh)
Address decoding
Chip-select = decode the top k bits (74LS138); block size = 2bus−k bytes; range = pattern × 2low … pattern × 2low + size − 1
Full decoding: no gaps, no overlaps  •  partial decoding: folded (aliased) address images
PLD structures
PROM: fixed AND (2n minterms) + programmable OR  •  PAL: programmable AND + fixed OR (terms not shareable)
PLA: both programmable (terms shared)  •  design: minimize → pool terms → check budgets → two fuse maps
Fuse convention: × = intact = connected; unused AND term = all fuses intact = 0
FPGA
k-LUT = 2k × 1 SRAM + MUX: SRAM bit at address i = F(i)  •  6-LUT: any 6-variable function per level
CLB = LUTs + flip-flops + carry chain  •  configuration in SRAM → volatile, bitstream boot from flash