4.1.8 · HinglishMemory Technologies

Flash memory (NOR vs NAND)

2,115 words10 min readRead in English

4.1.8 · Hardware › Memory Technologies


Flash memory KYA hai?

WHY ye non-volatile hai: floating gate oxide se ghira hua hai, isliye trapped charge ke paas leak hone ki jagah nahi hai. Data rakhne ke liye koi power nahi chahiye.

HOW ek bit encode hoti hai:

  • Floating gate par charge ⇒ high ⇒ cell read voltage par conduct NAHI karta ⇒ 0 read hota hai.
  • Koi charge nahi ⇒ low ⇒ cell conduct karta hai ⇒ 1 read hota hai (ye "erased" state hai).

HOW electrons gate par aate/jaate hain

Key asymmetry jo yaad rakhni chahiye:

  • Aap individual pages program kar sakte ho (1→0 selectively set karo).
  • Aap sirf poore blocks erase kar sakte ho (0→1 bulk mein reset karo).
  • Aap ek single bit ko 0→1 nahi flip kar sakte bina uske pore block ko erase kiye.

Ye flash ki defining constraint hai aur har flash filesystem / FTL design ko drive karti hai.


Wiring ka fark (NOR vs NAND ka dil)

Figure — Flash memory (NOR vs NAND)

Cost & density: NAND capacity mein kyun jeet jaata hai

Density aur zyada multiply hoti hai har cell mein kai bits store karke ( window ko levels mein divide karke):


Endurance & retention


Side-by-side summary

Property NOR NAND
Cell wiring parallel (per-cell contact) series strings
Cell size ~10 ~4
Read fast, random / byte slower, page
Write/erase slow faster program, block erase
Random access ✅ execute-in-place (XIP) ❌ (page load karna padta hai)
Cost / bit high low
Typical use boot/firmware code (BIOS) SSDs, USB, SD, phones
Bits/cell usually SLC SLC→QLC

Worked examples


Common mistakes


Active recall

Recall Feynman: ek 12-saal ke bacche ko samjhao

Socho ek light switch jisme andar ek chhota bucket chhupa hai. Normally ek chhoti si push switch on flip karti hai. Lekin agar tum bucket ko marbles (electrons) se bhar do, to switch "heavy" ho jaata hai aur use ek bahut bada push chahiye — to normal push par ye OFF rehta hai. Wo OFF matlab "0" hai, khali bucket matlab "1" hai. Marbles nikal nahi sakte kyunki bucket sealed hai, isliye power off hone par bhi yaad rehta hai. NOR har switch ko apna wire deta hai taaki koi bhi ek turant check ho sake. NAND switches ko ek row mein line up karta hai jo ek wire share karte hain — sasta hai aur bahut zyada fit ho jaate hain, lekin ek check karne ke liye baaki sab ko force on karna padta hai aur puri row ek saath read karni padti hai.

Flashcards

Flash cell mein charge kaunsa structure store karta hai?
Floating gate (ek insulated gate jo control gate aur channel ke beech hota hai).
Charged floating gate konsa bit read karta hai?
0 (high threshold voltage, cell conduct nahi karta).
Reads ke liye byte/random addressable kaun hai: NOR ya NAND?
NOR.
Chhota cell area (~4F²) aur lower cost/bit kaun deta hai?
NAND.
Ek single flash bit 0→1 rewrite kyun nahi ho sakti?
0→1 ke liye erasing chahiye, aur erase sirf poore block par hota hai.
Write granularity vs erase granularity?
Program = page; erase = block.
NAND program/erase ke liye kaunsa mechanism use karta hai?
Fowler–Nordheim tunnelling.
TLC ke liye bits per cell aur kaise derive hua?
3 bits, log2(8 levels) se.
QLC, SLC se kam durable kyun hai?
Zyada voltage levels squeezed in → chhoti margins → kam P/E cycles aur zyada errors.
FTL kya karta hai aur kyun?
Logical ko physical blocks se map karta hai aur writes wear-level karta hai kyunki blocks limited P/E cycles ke baad kharab ho jaate hain.
NOR flash ka typical use kya hai?
Boot code / firmware (execute-in-place, e.g. BIOS).
"Execute-in-place (XIP)" ke liye kya chahiye aur kaun sa flash support karta hai?
Code ka random byte read → NOR.

Connections

  • MOSFET and threshold voltage — wo physical device jis par flash bana hai.
  • Non-volatile memory — flash ki family (volatile RAM ke vs).
  • Solid State Drives (SSD) — NAND + FTL controller se bana hai.
  • Fowler–Nordheim tunnelling — program/erase ki physics.
  • Wear leveling and write amplification — block erase ke consequences.
  • Memory hierarchy — flash kahan baithta hai (RAM ke neeche, disk ke upar).
  • DRAM refresh — contrast: DRAM leak karta hai aur refresh chahiye; flash retain karta hai.

Concept Map

wrapped in

traps charge

charge shifts

read as bit

adds electrons

removes electrons

programs via

programs via

uses

only whole blocks

parallel cells give

series strings give

enables

higher density

Floating-gate transistor

Oxide insulation

Threshold voltage shift

Non-volatile storage

Program write 0

Erase block to 1

FN tunnelling

Channel hot-electron injection

Block-erase constraint

NOR array parallel

NAND array series