KYUN har output ek minterm hota hai. Variables A,B ka minterm ek product term hota hai jo exactly ek combination ke liye 1 hota hai. Jaise AˉB sirf tab 1 hota hai jab A=0,B=1. Kyunki hum chahte hain ki har output exactly ek input combination ke liye high ho, isliye har output ek minterm hi hota hai.
Scratch se derivation (2:4): Truth table likho. Hum chahte hain ki Dk=1 sirf row k mein ho.
A1
A0
D3
D2
D1
D0
0
0
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
1
1
1
0
0
0
Har column mein ek hi 1 hai → har output ek single minterm hai → seedha padh lo. K-map simplification ki zaroorat nahi; ek decoder literally "ek gate per minterm" hota hai.
3:8 ko do 2:4 decoders + Enable se banana (Feynman-style construction):
MSB A2 decide karta hai ki kaun sa 2:4 decoder active hoga.
A1A0 ko dono 2:4 decoders ko feed karo.
Top decoder A2=0 handle karta hai (outputs D0..D3): ise E=A2 se enable karo.
Bottom decoder A2=1 handle karta hai (outputs D4..D7): ise E=A2 se enable karo.
Yeh kyun kaam karta hai: Kisi bhi input ke liye, exactly ek hi decoder enabled hoga (dono ek saath on nahi ho sakte kyunki A2 aur A2 opposite hote hain). Jo enabled hoga woh apne chaar mein se ek line pick karega. Result: poore 8 mein one-hot. Yahi hierarchical decoder trick hai aur kisi bhi size tak generalize hoti hai.
Ek light switchboard socho jisme 4 lamps hain. Tumhare paas 4 switches nahi hain — tumhare paas 2 switches hain jo ek number "on/off" code (00,01,10,11) mein dikhaate hain. Decoder ek chhoti machine hai jo woh 2-switch number padhti hai aur sirf matching lamp jalati hai. Do switches → 4 lamps. Teen switches → 8 lamps. "Enable" button ek master power button hai: ise off karo aur saare lamps bujh jaate hain chahe tum koi bhi number set karo.
Ek n-bit binary input ko one-hot output mein convert karta hai — 2n output lines mein se exactly ek activate karta hai (woh wali jo input ki decimal value ke equal ho).
Why is each decoder output a minterm?
Kyunki har output exactly ek input combination ke liye 1 hona chahiye, jo ki precisely minterm ki definition hai.
2:4 decoder: write D2.
D2=A1A0 (fire karta hai jab A1A0=10 ho).
3:8 decoder: which output fires for input 101?
D5, kyunki 1012=5; equals A2A1A0.
What is the role of the Enable input?
Jab disabled ho, saare outputs inactive hote hain; jab enabled ho decoder normally kaam karta hai. Expansion aur demux use bhi allow karta hai.
How do you build a 3:8 decoder from two 2:4 decoders?
A1A0 ko dono ko feed karo; top ko A2 se enable karo (lines 0–3), bottom ko A2 se (lines 4–7).