Digital circuits mein Power consumption woh rate hai jis par electrical energy heat mein convert hoti hai. CMOS (Complementary Metal-Oxide-Semiconductor) circuits ke liye—jo modern CPUs, GPUs, aur SoCs ka foundation hai—power do categories mein banti hai:
Dynamic Power: Switching activity ke dauran consume hoti energy (transistors ka state 0→1 ya 1→0 mein badalna)
Static Power: Jab circuit idle ho tab consume hoti energy (leakage currents)
Kyun zaroori hai: Power directly heat mein translate hoti hai. Zyada heat hogi toh performance degrade hogi (thermal throttling), chip ki lifespan kam hogi, aur batteries drain hongi. Is split ko samajhna engineers ko performance vs battery life vs cooling ke liye optimize karne mein help karta hai.
Ek CMOS gate ko ek capacitor C ke roop mein model kiya jaata hai jo ek transistor ke through voltage source Vdd se connected hota hai. Jab output 0 se Vdd par switch karta hai, capacitor charge hota hai.
Power supply se capacitor ko 0 se Vdd tak charge karne mein li gayi energy:
Esupply=∫0QVdq=∫0CVddVdddq=Vdd⋅Q=CVdd2
Kyun? Supply voltage Vdd constant hai. Capacitor par charge Q=CVdd push karne ke liye, supply work karta hai W=V⋅Q.
Step 2: Capacitor Mein Store Hoti Energy
Capacitor mein voltage Vdd par stored energy:
Estored=21CVdd2
Kyun? Capacitor charge hote waqt voltage linearly 0 se Vdd tak badhta hai. Average voltage Vdd/2 hota hai, isliye E=21QVdd=21CVdd2.
Step 3: Heat Ke Roop Mein Dissipate Hoti Energy
Charging ke dauran dissipated energy (transistor resistance mein heat ke roop mein lost):
Jab transistor discharge karta hai (1→0), stored energy 21CVdd2 ground mein dissipate hoti hai.
Ek switching cycle mein total energy (0→1→0):
Ecycle=21CVdd2+21CVdd2=CVdd2
Factor of 2 kyun? Aadha charging ke dauran lost hota hai (pull-up transistor mein), aadha discharging ke dauran (pull-down transistor mein).
Step 4: Power = Energy × Frequency
Agar gate frequency f par switch karta hai (Hz mein measure hota hai, cycles per second), aur iska activity factor α hai (fraction of clock cycles jisme switching hoti hai):
Physical meaning:
Vdd2: Quadratic voltage dependence—voltage aadha karne par switching power 4× kam hoti hai
f: Linear frequency dependence—clock speed double karne par power double hoti hai
α: Har gate har cycle switch nahi karta; typical CPUs mein low activity factors hote hain
Standard formula yeh kyun miss karta hai: αCVdd2f derivation sirf load capacitor ko deliver hone wale charge ko account karti hai. Short-circuit current kabhi capacitor tak nahi pahunchta—yeh input transition ke dauran directly supply→ground flow karta hai, isliye yeh ek alag term hai.
Subthreshold leakage: Drain se source mein current flow hoti hai jab bhi Vgs<Vth ho (gate voltage threshold se neeche). Threshold voltage par exponentially dependent.
Gate oxide tunneling: Electrons thin gate oxide ke through tunnel karte hain (quantum effect). ~2 nm se neeche oxide thickness shrink hone par aur bura hota hai.
VT=kT/q≈26 mV room temperature par (thermal voltage)
n = subthreshold slope factor (~1.3–1.5)
Exponential kyun? Subthreshold conduction semiconductors mein diffusion current ki physics follow karta hai, jo voltage par exponentially dependent hai.
Temperature dependence: Leakage current temperature mein har 10°C badhne par roughly double ho jaata hai. High temperatures static power ke liye catastrophic hain.
Low power (mobile): Vdd kam karo (switching quadratically help karta hai, short-circuit cubically, static linearly), f kam karo, high-Vth transistors use karo (kam leakage lekin slow), unused blocks power-gate karo
High performance (datacenter): High power accept karo, cooling maximize karo, low-Vth transistors use karo (fast lekin leaky)
Thick oxides → low leakage, high voltages → high switching energy
2000s–2010s
90–45 nm
Transition
Gate oxide thinning → tunneling badhta hai
2010s–ab
<22 nm
Dono comparable
FinFETs leakage kam karte hain lekin billions transistors matlab static bhi add up hoti hai
FinFET improvement: 3D gate structure electrostatic control improve karta hai → same performance ke liye kam leakage. Lekin jaise hum aur transistors pack karte hain, total static power phir bhi badhti rehti hai.
Recall Feynman Explanation (Ek 12-Saal Ke Bacche Ko Explain Karo)
Socho tumhare paas ek dabba light switches ka hai. Har baar jab tum switch on ya off karte ho, use push karna padta hai—usme muscle energy lagti hai. Jitna tezi se switches flip karte ho, utna thak jaate ho. Yeh hai switching power: cheezein change karne ki energy.
Ek chhupi hui extra cost bhi hai: jab tum switch flip karte ho, ek chhote se instant ke liye woh na fully on hota hai na fully off—beech mein hota hai. Uss instant mein, electricity battery se directly ground tak shortcut le leti hai aur heat ke roop mein waste ho jaati hai. Yeh hai short-circuit power—ek chhota sa leak jo flip ke dauran hota hai.
Aur ek aur baat: jab switch "off" hota hai, tab bhi woh perfectly off nahi hota. Yeh uss door ki tarah hai jo theek se band nahi hoti—light crack se leak hoti hai. Tumhare saare switches idle hone par bhi thoda sa leak karte hain. Yeh hai static power.
Purane switches mein (bade chunky wale), leaks itni chhoti thi ki ignore kar sakte the. Lekin modern computer switches super tiny hote hain—ek germ se bhi chhote. Uss size par, electricity itni "slippery" hoti hai ki switch band hone par bhi leak ho jaati hai. Power save karne ke liye: switches slow flip karo, kam voltage use karo, unhe crispy flip karo (kam shortcut waste), aur jo switches use nahi ho rahe unhe unplug karo. Isliye phones din bhar chalte hain aur servers ko giant fans chahiye hote hain.
FinFET Transistors: 3D gates leakage kaise kam karte hain
Subthreshold Slope: Physics jo batati hai ki leakage exponential kyun hai
Signal Transition Time: Sharp edges short-circuit power minimize karti hain
Amdahl's Law: Kyun sab kuch off nahi kar sakte (parallelism vs power)
#flashcards/hardware
CMOS circuits mein power consumption ki do categories kya hain? :: Dynamic power (switching + short-circuit) aur static power (leakage).
Dynamic power ke do components kya hain?
(1) Load capacitance charge/discharge karne se switching power (αCVdd2f), aur (2) transition ke dauran dono transistors brief time ke liye conduct karne se short-circuit (shoot-through) power.
Switching power formula aur har term ka matlab :: Pswitching=αCVdd2f, jahan α activity factor hai, C capacitance hai, Vdd supply voltage hai, f frequency hai.
αCV2f formula saari dynamic power kyun capture nahi karta?
Yeh sirf load capacitor ko deliver hone wale charge ko account karta hai. Yeh short-circuit current miss karta hai jo transition ke dauran PMOS aur NMOS dono conduct karne par directly Vdd se ground tak flow karta hai.
Short-circuit (shoot-through) power kya cause karta hai?
Finite-time input transition ke dauran, pull-up (PMOS) aur pull-down (NMOS) dono transistors momentarily ON hote hain, Vdd se ground tak ek direct conducting path create karte hain.
Short-circuit power kaise minimize karo?
Sharp input edges use karo (chhota transition time τ), rise/fall times balance karo, aur jahan Vdd≲2Vth ho wahan operate karo (short-circuit vanish ho jaata hai kyunki dono transistors ek saath threshold exceed nahi kar sakte).
Switching power Vdd ki jagah Vdd2 ke saath kyun scale hoti hai?
Capacitor charge karne ki energy CVdd2 hai (ek factor charge Q=CVdd se, ek voltage se). Aadha charge ke dauran lost hota hai, aadha discharge ke dauran, isliye per cycle CVdd2 hota hai. Power = energy × frequency.
Activity factor α kya hai aur typical values kya hain?