silicon atlasTHE HARDWARE REFERENCE
العربية
Reference/Memory & storage
Memory & storage

NAND flash & SSD controllers

Retain charge without power, then manage pages, blocks, and wear.

An SSD does not simply overwrite the same physical bytes each time you save a file.
Cell

Stores threshold levels.

LIVE EXPERIMENT

Make a cache miss

Runs on your device
BYTE ADDRESS0Block 0 → Set 0MISS
SET 0tag 0
SET 1·
SET 2·
SET 3·
SET 4·
SET 5·
SET 6·
SET 7·
Accesses1
Hit rate0%
Bytes fetched64
Select any access above, or step through the trace.

A cache fetches a whole line. Locality reuses it; conflicting mappings can evict useful data even before total capacity is exhausted.

What this model includes

One read-only cache, 64-byte lines, LRU replacement, eight total lines, eight-byte elements, 32 accesses. No prefetching or multilevel effects.

FOLLOW THE MECHANISM

What happens inside

1

Read pages, erase blocks

NAND stores information through charge-related threshold levels. SLC, MLC, TLC, and QLC encode different bits per cell, trading density against sensing margins, endurance, and performance. Programming works at a page granularity, while erasure affects larger blocks. 3D NAND stacks cells vertically.

2

Translate and clean up

The flash translation layer maps logical addresses onto physical pages. Wear leveling spreads writes, ECC handles covered errors, and garbage collection reclaims blocks by moving valid pages. TRIM tells the controller which logical ranges no longer need preservation. Internal copying creates write amplification.

PUT IT TO WORK

What this means for your code

Low-level engineer

Study durability, flush semantics, endurance, and power-loss behavior. Host completion and persistence have specific contracts.

Software developer

Large sequential writes and random small writes exercise different behavior. Maintain spare capacity and measure sustained performance beyond any burst cache.

GO TO THE SOURCE

Read the actual specifications

These references supply the underlying contracts and implementation details. The diagrams here are simplified teaching models.

Micron · Solid-state drivesMicron
NVM Express · SpecificationsNVM Express

Keep following the connection

Understood the idea? Keep a note of your progress.