A CMOS gate is a switch factory. Two teams of transistors fight over the output node: one team pulls it HIGH, the other pulls it LOW — and by design, never both at once.
The PUN and PDN are duals. Build one from the Boolean function, then get the other by De Morgan.
Let gPDN = "PDN conducts" and gPUN = "PUN conducts". Correct design requires:
gPDN=gPUN(complementary: never both, never neither)
and the output is
Y=gPDN
(output is high exactly when the PDN is OFF and the PUN is ON).
PDN:f=(AB)+C. AB ⇒ series pair (A then B); that whole branch in parallel with a single NMOS C (the OR).
PUN (dual): OR→series, AND→parallel: PMOS C in series with (PMOS A ∥ PMOS B).
Why one gate does this: CMOS compound gates implement any AND-OR (AOI) or OR-AND (OAI) form in a single stage — cheaper and faster than chaining NANDs.
Dekho, CMOS gate ke andar do teams hoti hain jo output wire pe control karti hain. Ek team PUN (Pull-Up Network) hai jo PMOS transistors se bani hoti hai aur output ko VDD tak, yaani logic 1 tak, kheench ke le jaati hai. Doosri team PDN (Pull-Down Network) hai jo NMOS transistors se bani hoti hai aur output ko ground, yaani 0 tak, kheenchti hai. Rule bilkul simple hai: kisi bhi input combination pe sirf ek hi network ON hoga — kabhi dono nahi, kabhi koi nahi.
Ab sawaal — PMOS upar kyun aur NMOS neeche kyun? Kyunki NMOS ek strong 0 pass karta hai par ek weak 1 (output VDD−Vtn tak hi jaata hai, poora nahi). PMOS ulta — strong 1, weak 0. Toh har transistor ko wahi kaam do jismein woh best hai: NMOS ko pull-down, PMOS ko pull-up. Isse output hamesha clean full 1 ya full 0 milta hai, aur beech mein koi degraded value nahi.
Networks banane ka trick duality hai. PDN mein series NMOS = AND, parallel NMOS = OR. PUN uska ulta hota hai — series ko parallel bana do, parallel ko series. Yeh actually De Morgan ka law hi hai chhupa hua. Jaise NAND (AB): PDN mein do NMOS series, PUN mein do PMOS parallel. NOR (A+B): PDN mein do NMOS parallel, PUN mein do PMOS series. Bas ulta ho gaya!
Yeh cheez matter kyun karti hai? Kyunki jab ek hi network conduct karta hai, tab VDD se ground tak koi seedha current path nahi banta — matlab static power almost zero. Isiliye CMOS ne baaki technologies ko peeche chhod diya. Exam aur design dono mein: pehle function likho, PDN banao (AND=series, OR=parallel), phir dual leke PUN banao. Ho gaya kaam.