4.1.6 · HinglishMemory Technologies

SDRAM and DDR (DDR2 - 3 - 4 - 5) evolution

1,949 words9 min readRead in English

4.1.6 · Hardware › Memory Technologies


SDRAM/DDR exist kyun karta hai?


SDR SDRAM: starting point

  • Agar bus clock hai aur bus bits wide hai, toh peak transfer rate hai:

DDR trick: both clock edges

Lekin ek catch hai jo poori generation story ko drive karti hai:


Generations — same core, faster interface

Gen Prefetch (bits) I/O clock ÷ core Voltage Typical data rate
SDR 1n 3.3 V 100–166 MT/s
DDR 2n 1× (both edges) 2.5 V 200–400 MT/s
DDR2 4n 1.8 V 400–1066 MT/s
DDR3 8n 1.5 V 800–2133 MT/s
DDR4 8n (+ bank groups) 1.2 V 1600–3200 MT/s
DDR5 16n (2× 8n subchannels) 1.1 V 3200–8400 MT/s
Figure — SDRAM and DDR (DDR2 - 3 - 4 - 5) evolution

Worked examples


Common mistakes (steel-manned)


Active recall

Recall Khud test karo (answers hide karo)
  • Woh ek physical fact kya hai jo saari "interface trickery" force karta hai? → DRAM array ka ~15 ns access time barely improve hota hai.
  • DDR mein "D" tumhe kya deta hai? → Dono clock edges par data = 2× transfers.
  • DDR3 ka prefetch? → 8n.
  • Prefetch DDR3 ke baad doubling kyon ruk gayi? → Burst bahut bada / wasteful ho jaata; bank groups & subchannels use kiye.
  • DDR4-3200, 64-bit ko GB/s mein convert karo? → GB/s.
Recall Feynman: 12-saal ke bachchey ko samjhao

Socho ek well hai jismein slow-fill hone wale paani ke buckets hain (memory) aur ek fast conveyor belt hai (CPU tak wires). Tum buckets faster fill nahi kar sakte, isliye tum ek saath bahut saare buckets fill karte ho aur belt faster chalate ho, aur tum belt par ek bucket tab rakhte ho jab belt-arm upar aur neeche dono baar jaata hai (wahi hai DDR mein "double"). Har naya DDR bas ek saath zyada buckets fill karta hai aur belt faster chalata hai — lekin well khud kabhi faster nahi hui. Ye hai poora secret.


Connections

DDR evolution ko drive karne wala key physical bottleneck kya hai?
DRAM array access time (~15 ns) barely improve hua, isliye speed gains interface se aate hain, core se nahi.
DDR (Double Data Rate) kya karta hai?
Dono rising aur falling clock edges par data transfer karta hai, clock cycle per transfers double karta hai.
Data rate (MT/s) bus clock (MHz) se kaise related hai?
Data rate = 2 × clock frequency (dono edges).
SDR, DDR, DDR2, DDR3 ka prefetch width kya hai?
Krama se 1n, 2n, 4n, 8n.
DDR3 se DDR4 tak prefetch 8n par kyon ruki?
Bada prefetch matlab bada minimum burst = wasted bandwidth; DDR4 ne bank groups use kiye.
DDR5 effectively 16n prefetch tak kaise pohonchta hai?
Ye har channel ko do independent 32-bit subchannels mein split karta hai, har ek 8n prefetch ke saath.
64-bit channel par DDR4-3200 ki peak bandwidth compute karo.
3200 MT/s × 8 bytes = 25.6 GB/s.
"PC3-12800" ka matlab kya hai?
DDR3 module jiska peak bandwidth 12800 MB/s hai (= DDR3-1600).
DDR3-1600 actually kitni core clock par run karta hai?
200 MHz (1600 ÷ 2 edges ke liye ÷ 4, 8n prefetch ke liye).
SDR→DDR5 mein operating voltage kaise evolve hui?
3.3 → 2.5 → 1.8 → 1.5 → 1.2 → 1.1 V (power save karne ke liye har generation mein girta hai).
Same MT/s par DDR5 aur DDR4 real performance mein kyon differ kar sakte hain?
DDR5 ke dual subchannels zyada parallelism/concurrency dete hain, stalls reduce karte hain equal peak bandwidth ke bawajood.

Concept Map

too slow to feed

reads chunk once, streams fast

clocked, once per cycle

adds falling edge

2x transfers per clock

BW = fclk x w/8

needs to avoid starving

width doubles each gen

same slow core, faster IO

DRAM array slow ~15ns

IO interface fast

SDRAM synchronous

SDR one edge

DDR both edges

Prefetch buffer n bits

Peak bandwidth

DDR2 3 4 5 generations