Derivation — pins needed.
Suppose the array holds N=R×C bits.
To pick 1 of R rows you need log2R address bits.
To pick 1 of C columns you need log2C address bits.
Total address bits: log2R+log2C=log2(RC)=log2N.
address pins=log2N
Why this step? Each independent binary bit doubles how many lines you can name, so the number of things you can address is 2(bits); inverting gives log2.
Square array minimizes pins-per-side. To split log2N address bits into row + column, and if we further want to time-multiplex the same pins for row then column (as real DRAM does with RAS/CAS), the pin count for one shared bus is minimized when R=C=N:
Derivation — the sense voltage.
Before the read, the bitline is precharged to VDD/2 and then floated. The storage cell holds either VDD (logic 1) or 0 (logic 0).
When the wordline turns on, cell and bitline share charge. Total charge before = charge after, using Q=CV:
CsVcell+Cb⋅2VDD=(Cs+Cb)Vfinal
Solve for the final bitline voltage:
Vfinal=Cs+CbCsVcell+Cb2VDD
The signal the sense amp sees is the deviation from the precharge point VDD/2:
ΔV=Vfinal−2VDD=Cs+CbCs(Vcell−2VDD)
Why this step? Subtracting the reference isolates only the part caused by the cell; everything common to the reference bitline cancels.
The sense amplifier's job (differential):
Precharge bitline (BL) and its complement (BL) to VDD/2.
Activate wordline → BL nudges up or down by ΔV; BL stays at reference (or vice-versa, using a dummy cell).
Enable the cross-coupled latch (two back-to-back inverters). Positive feedback drives whichever line is higher to VDD and the other to 0.
Restore/refresh: the now-full-swing BL is still connected to the cell through the open access transistor, so the cell's capacitor is recharged to its original value. (Reading DRAM is destructive; the sense amp repairs it.)
Recall Explain it to a 12-year-old (click to reveal)
Think of a huge apartment building where every apartment holds a single drop of water (that's the memory bit). You can't run a pipe to every apartment — there are billions. So instead you say "Floor 12" (that turns on the whole floor's hallway light = wordline) and "Apartment 8" (that's the column pick). Now the tiny water drop trickles into a very long empty pipe (the bitline) and almost disappears. A special helper at the bottom of the pipe (the sense amplifier) is so sensitive it can tell "there WAS a drop" versus "there was NONE", shouts it loudly so everyone hears (full 0 or 1), and then — because looking used up the drop — pours the drop back into the apartment so it isn't lost. That last pour-back is why we say reading this memory erases it unless you refill it.
Socho ek bahut badi memory chip hai jisme crore-crore bits hain. Har bit ko alag wire dena impossible hai. Isliye cells ko ek grid (rows aur columns) me arrange karte hain. Ek particular bit tak pahunchne ke liye hum bolte hain "Row number itna, Column number itna" — bilkul stadium me seat dhoondhne jaisa. Row decoder sirf ek wordline ko high karta hai (us row ke saare cells ka gate ON), aur column decoder ek bitline ko output se jodta hai. Selected cell wahi hai jahan selected row aur selected column milte hain.
Ab problem: DRAM me har bit ek chhote capacitor Cs par charge ke roop me stored hota hai. Jab wordline ON hota hai, ye chhota charge ek bahut lambi bitline (jiska apna bada capacitance Cb) par phail jaata hai. Formula ΔV=Cs+CbCs(Vcell−VDD/2) batata hai ki signal sirf kuch millivolt hi milega, kyunki Cb, Cs se bahut bada hota hai. Itna chhota signal koi normal logic gate padh hi nahi sakta.
Isiliye aata hai hero — sense amplifier. Pehle bitline ko VDD/2 par precharge karte hain (taaki 0 aur 1 dono ke liye signal symmetric mile, +ΔV ya −ΔV). Phir cross-coupled latch positive feedback se us chhote nudge ko full VDD ya 0 tak amplify kar deta hai. Aur kyunki padhne me cell ka charge bik gaya (destructive read), sense amp usko wapas write-back / refresh bhi karta hai.
Yaad rakhne wali baat: DRAM address ko RAS (row pehle) aur CAS (column baad me) se, wahi pins reuse karke bhejta hai — isse pins aadhe ho jaate hain. Square array (R=C=N) sabse kam pins deता hai: 21log2N. Ye pura khel density aur speed ka balance hai — yahi reason hai ki aapka RAM sasta aur bada dono ho paata hai.