WHY does the charge disappear? The capacitor is not perfect. Three leakage paths drain it:
Subthreshold leakage through the "off" access transistor (it's never perfectly off).
Junction leakage at the reverse-biased diode between the storage node and the substrate.
Dielectric leakage through the (very thin) capacitor insulator itself.
Because the cell is "dynamic" (charge decays over time), it contrasts with SRAM, which is "static" — SRAM holds its bit in a cross-coupled latch that actively drives the value and never needs refresh (but costs 6 transistors per bit).
Model the leakage as a resistance Rleak from the storage node to ground. The capacitor C discharges through it.
Step 1 — Charge conservation. Current leaving the capacitor equals the drop in stored charge:
I=−dtdQ,Q=CV⇒I=−CdtdVWhy this step? The only place the charge can go is through the leak, so rate of charge loss = leakage current.
Step 2 — Ohm's law on the leak path.I=V/Rleak.
Why? The leak behaves (to first order) like a resistor draining the node to 0V.
Step 3 — Combine into an ODE.−CdtdV=RleakV⇒dtdV=−RleakCV
Step 4 — Solve. Separable, giving exponential decay:
V(t)=V0e−t/τ,τ=RleakCWhy? Any "rate of change ∝ current amount" gives an exponential — the same math as RC discharge or radioactive decay.
The refresh rule: you must revisit every cell within one refresh periodtREF (the standard is 64ms at normal temperature, tightened to 32ms when hot). You must choose tREF<tret of the weakest cell in the entire chip.
Burst refresh: refresh all rows back-to-back, then run normal accesses. Memory is unavailable during the burst.
Distributed refresh: spread refreshes evenly. For N rows in period tREF, issue one REF every
tRI=NtREF(refresh interval).
Modern DDR uses distributed refresh so no single long stall occurs.
Leakage currents rise roughly exponentially with temperature (junction/subthreshold currents follow ∝e−Ea/kT-type behavior). Higher T → smaller Rleak → smaller τ → shorter retention. So JEDEC halves the period to 32ms above 85∘C ("temperature-compensated / auto self-refresh").
Recall Explain it to a 12-year-old (click to reveal)
Imagine a giant wall of tiny cups. A full cup means "1", an empty cup means "0". But every cup has a slow leak. If you leave them alone, all the full cups slowly empty and the computer forgets everything! So a little robot walks along the wall, and every few thousandths of a second it checks a row of cups and tops up the full ones back to full. That topping-up is called refresh. Cups leak faster when it's hot, so the robot walks twice as fast on a hot day. This is why turning off the power erases DRAM — the robot stops, the cups drain, and the memory forgets.
Dekho, DRAM ka har ek bit sirf ek chhoti si capacitor pe stored charge hota hai — charge hai to "1", nahi hai to "0". Problem yeh hai ki yeh capacitor perfect nahi hota, uska charge dheere-dheere leak ho jaata hai (transistor se, junction se, aur dielectric se). Matlab agar kuch na karo to memory apne aap sab bhool jaayegi kuch milliseconds mein. Isiliye DRAM ko "dynamic" bolte hain — data ko zinda rakhne ke liye baar-baar refresh karna padta hai.
Physics simple hai: charge Q=CV, aur leakage current I=V/R. Isse equation banti hai dV/dt=−V/(RC), jiska solution hai V(t)=V0e−t/τ jahan τ=RC. Yaani voltage exponentially girta hai. Jab tak voltage sense amplifier ke threshold (aam taur pe V0/2) se upar hai, tab tak bit sahi padha ja sakta hai. Iske niche gir gaya to bit corrupt. Isiliye har cell ko us threshold tak pahunchne se pehle top-up karna zaroori hai — yahi refresh hai.
Practically, DRAM ek pura row ek saath refresh karta hai. Standard period 64 ms hai (garmi mein 85∘C ke upar 32 ms, kyunki heat se leakage exponentially badhta hai). Agar bank mein 8192 rows hain to har 64ms/8192≈7.8μs mein ek REF command aati hai — isko distributed refresh kehte hain, taaki ek lamba stall na ho. Ek mazedaar baat: DRAM ka read destructive hota hai, par sense amp turant value wapas likh deta hai, isliye read khud bhi refresh kar deta hai.
Yeh important kyun hai? Kyunki refresh se performance aur power dono affect hote hain — bade chips mein overhead 5% se 20% tak ja sakta hai. Aur exam/interview mein yahi concept baar-baar aata hai: "DRAM refresh kyun chahiye?" — jawab: capacitor leaks, charge decays exponentially, refresh regenerates it before crossing threshold. Bas yeh yaad rakho.