4.1.7 · D4Memory Technologies

Exercises — ROM, PROM, EPROM, EEPROM

2,007 words9 min readBack to topic

Parent topic: ROM, PROM, EPROM, EEPROM. If a term feels unfamiliar, the linked prerequisite notes rebuild it from zero.

Before we start, one reminder of the numbers we lean on all page:


Level 1 — Recognition

L1.1

State which member of the ROM family matches each clue: (a) written only at the factory, never changeable; (b) blank when shipped, user burns fuses once; (c) erased by ultraviolet light through a quartz window; (d) erased electrically, one byte at a time, in-circuit.

Recall Solution

(a) ROM (Mask ROM) — pattern is etched by a photomask, part of the chip geometry. (b) PROM — One-Time Programmable; melting a fuse is irreversible. (c) EPROM — UV photons kick trapped electrons off the floating gate; whole chip erases. (d) EEPROM — a reverse electric field tunnels electrons off selected cells.

L1.2

Fill the blanks: EPROM erase granularity is the ____; EEPROM erase granularity is the ____; Flash erase granularity is the ____.

Recall Solution

EPROM = whole chip. EEPROM = byte. Flash = large block (essentially block-erasable EEPROM optimised for density).


Level 2 — Application

L2.1

An EEPROM cell is rated write cycles. A sensor node overwrites the same byte every 10 seconds, 24/7. How long until that cell wears out? Give the answer in days.

Recall Solution

Step 1 — writes per day. One write per 10 s. Why: endurance is counted in cycles, so convert time to writes. Step 2 — lifetime. The cell dies in under 12 days — hammering one location is deadly.

L2.2

Same EEPROM, same 10-second write rate. You apply wear leveling across bytes. Now how long, in years?

Recall Solution

Effective cycles: . Writes per year: . Why convert to a per-year rate: the effective endurance is a fixed number of writes, and we want the answer in years, so we must express the write rate in the same time unit (writes/year) before dividing. Lifetime: Rotating the target byte over 512 cells buys ~16 years from a cell that alone lasted 12 days.


Level 3 — Analysis

L3.1

You ship 10 million identical routers whose firmware is frozen forever. A supplier offers Mask ROM at a $40{,}000 one-time mask charge plus $0.05/unit, or EEPROM at $0 setup plus $0.55/unit. Which is cheaper, and by how much total?

Recall Solution

Mask ROM total: 40{,}000 + 10^7 \times 0.05 = 40{,}000 + 500{,}000 = \540{,}00010^7 \times 0.55 = $5{,}500{,}0005{,}500{,}000 - 540{,}000 = $4{,}960{,}000$ cheaper with Mask ROM. Why Mask ROM here: the huge fixed mask cost is dwarfed by the tiny per-unit cost at 10-million volume, and immutable firmware is exactly what's wanted.

L3.2

Find the break-even volume where Mask ROM and EEPROM cost the same, using the prices above.

Recall Solution

Set totals equal: Below 80,000 units EEPROM (no mask charge) wins; above it, Mask ROM wins.


Level 4 — Synthesis

L4.1

Design the memory map for a microcontroller-based smart thermostat. It needs to hold: (i) boot firmware that never changes; (ii) user calibration constants updated a few times a year in the field; (iii) live sensor readings during operation. Assign each to a memory type and justify.

Recall Solution

(i) Boot firmware → Mask ROM: fixed, cannot be corrupted by a stray write, and cheapest at volume. See Boot Firmware and BIOS. (ii) Calibration constants → EEPROM: rewritten in-circuit, per-byte, only a few times/year — well within the endurance. UV-erase EPROM is impossible in the field. (iii) Live readings → RAM (SRAM/DRAM): needs fast, unlimited overwrites; volatility is fine because readings are transient. See RAM (SRAM, DRAM) and Volatile vs Non-Volatile Memory.

L4.2

A logging device must record 1 event/minute for 10 years to EEPROM rated cycles. What is the minimum number of bytes you must wear-level across?

Recall Solution

Total writes over 10 years: Requirement: . You need at least 53 rotating byte-locations. Rounding up matters: 52 bytes would fall just short.


Level 5 — Mastery

L5.1

The retention of a floating-gate cell is governed by tunnelling leakage through the oxide: where is the oxide thickness and is a constant fixed by barrier height (see Fowler–Nordheim Tunneling and Floating-Gate Transistor). A cell with oxide thickness retains data for 10 years. Retention time is inversely proportional to leakage. If a denser chip thins the oxide to and , what is the new retention time?

Recall Solution

Step 1 — retention vs leakage. Retention . Why the inverse: the stored charge sets the threshold voltage; the cell "remembers" until that charge has leaked away. A larger leakage current drains the charge faster, so it takes less time — retention (the time to fail) is therefore inversely proportional to the drain rate . Step 2 — ratio of the two thicknesses. Why the ratio: the proportionality constant cancels, so only the thickness change matters. Step 3 — new retention. Punchline: a mere 10% thinner oxide slashes retention from 10 years to ~6 months — because the dependence is exponential. This is why shrinking non-volatile cells is physically brutal.

The figure below plots exactly this collapse. The teal curve is retention against oxide thickness (log scale on the vertical axis). Follow the two dashed guide-lines: the ink dot at sits at 10 years; slide left just 10% to the orange dot at and the curve has already plunged to about half a year. The near-straight line on a log axis is the visual signature of an exponential — equal steps left produce equal multiplicative drops, not equal subtractions.

Figure — ROM, PROM, EPROM, EEPROM

L5.2

Two rewritable technologies: EEPROM erases per byte; Flash erases in 4 KB blocks (4096 bytes). To rewrite one byte in a Flash block you must erase the whole block, charging one erase cycle to every cell in it. Suppose all 4096 bytes in one block each get rewritten 200 times, but writes to different bytes are interleaved so each single-byte write triggers a full-block erase. If both are rated cycles, how many erase cycles does one particular byte's cell endure on (a) EEPROM, (b) naive Flash?

Recall Solution

(a) EEPROM: an erase is charged only to the byte being rewritten. That cell sees its own 200 rewrites 200 erase cycles. Comfortably under . (b) Naive Flash: every single-byte write anywhere in the block forces a full-block erase, and that erase hits our cell too. That is — the cell is worn out roughly over. This blow-up factor, equals the block size in bytes: each logical byte-write costs the cell a full-block erase. This is precisely why Flash needs aggressive wear leveling while byte-erasable EEPROM does not. See Flash Memory.


Recap — which rung tested what

Recall One-line self-check

Why does a 10% thinner oxide cause a ~20x retention loss? ::: Because leakage is exponential in thickness, , so a small thickness change is amplified. Below what router volume does EEPROM beat Mask ROM at the given prices? ::: Below 80,000 units. Minimum wear-level byte count for 1 write/min over 10 years at cycles? ::: 53 bytes. How many erase cycles does one Flash cell endure if all 4096 bytes in its block are rewritten 200 times? ::: 819,200 — the block size times the rewrites, showing write amplification.