4.1.8 · D4Memory Technologies

Exercises — Flash memory (NOR vs NAND)

2,015 words9 min readBack to topic

Level 1 — Recognition

Can you recall the definition and read it off directly?

Recall Solution L1.1

WHAT: We check the reading convention. WHY: the bit is defined by whether the cell conducts at read voltage, not by "is there charge." Charge on gate ⇒ high ⇒ does NOT conduct ⇒ reads as 0. An empty (erased) gate ⇒ low ⇒ conducts ⇒ reads 1. Answer: 0.

Recall Solution L1.2
  • Parallel, per-cell contact → NOR (each cell independently reachable ⇒ fast random read).
  • Series strings, shared contact → NAND (fewer contacts ⇒ denser, cheaper).
Recall Solution L1.3

Read: byte/page (fine). Program: page. Erase: block (coarse). The one-way rule: you can clear bits per page, but restoring needs a whole-block erase. Never bit-granular. This asymmetry uses Fowler–Nordheim tunnelling.


Level 2 — Application

Plug the numbers into the formulas from the parent note.

Recall Solution L2.1

WHY : each distinct level is one symbol; the number of bits needed to name symbols is (because symbols need bits). Answer: 4 bits (that's the "Q" — quad — in QLC).

Recall Solution L2.2

Invert : levels. Sanity check: SLC , MLC , TLC , QLC . ✔

Recall Solution L2.3

WHAT: tightest packing = one line-width of active + one line-width of space in each direction. NOR needs an extra contact + isolation per cell, inflating it to . Answer: . See the figure below.

Figure — Flash memory (NOR vs NAND)

Level 3 — Analysis

Compare, ratio, and reason about consequences.

Recall Solution L3.1

WHY a ratio: cells-per-area is inversely proportional to area-per-cell, so divide the areas. Answer: more NAND cells in the same silicon.

Recall Solution L3.2

WHY multiply: two independent multipliers — more cells and more bits each. Answer: more bits per area. This is why SSDs use TLC/QLC NAND, not NOR.

Figure — Flash memory (NOR vs NAND)
Recall Solution L3.3

Order (most → least): SLC > MLC > TLC > QLC. Why: more bits/cell packs more levels into the same voltage window, so each level's margin shrinks. Oxide wear from Fowler–Nordheim tunnelling then pushes cells across those thin margins sooner — fewer usable P/E cycles. Tighter margins also demand heavier error correction. See Wear leveling and write amplification.


Level 4 — Synthesis

Chain several rules together into a realistic scenario.

Recall Solution L4.1

WHY the whole block: you cannot restore any bit without erasing its entire block — erase is block-granular. So the controller reads the 256 KB block into RAM, edits the byte, erases the block, rewrites all 256 KB. Physical work: bytes written. Answer: 262144 bytes moved; amplification . This intrinsic cost is exactly why the FTL and Wear leveling and write amplification exist.

Recall Solution L4.2

WHY it's cheaper: by pointing the logical address at a new physical page it dodges the block erase entirely — it only pays for one page. Physical write: bytes. Answer: 4096 bytes; amplification . Still huge, but better than the naive block rewrite (). The erase cost was deferred to background garbage collection.


Level 5 — Mastery

Design-level judgement: pick the right technology and justify with numbers.

Recall Solution L5.1

(a) Boot firmware → NOR. Decisive reason: execute-in-place (XIP) needs true random/byte reads so the CPU fetches instructions directly. NOR's parallel per-cell wiring gives fast random reads; NAND must load a whole page first, so it can't XIP. (b) 128 GB user storage → NAND (TLC/QLC). Decisive reason: cost per bit. NAND's series packing plus multi-bit cells give the bits/area of SLC NOR — the only economical way to reach 128 GB. Its slower random reads don't matter for bulk photo/app data. Fits the Memory hierarchy role of cheap bulk non-volatile store.

Recall Solution L5.2

WHY multiply: perfect wear leveling means every byte of capacity can be rewritten once per P/E cycle, so total writes capacity cycles. Capacity bytes (using decimal GB). Answer: bytes TB (ideal). Why real drives fall short: write amplification is (the L4 problem — a small logical write drags a bigger physical write), and wear leveling is imperfect, so the usable TBW is a fraction of this ceiling.


Quick self-check

Which memory supports execute-in-place?
NOR (fast random/byte reads).
Bits stored by a cell with 16 levels?
bits (QLC).
Ideal minimum NAND planar cell area?
(that is ).
Why can't you flip one bit in place?
Restoring needs a whole-block erase; erase is block-granular.
Bytes physically written to change 1 byte via naive block rewrite of a 256 KB block?
262144 bytes ().

Return to the parent topic.