3.3.5 · HinglishCombinational Circuits

Multiplexers (2 - 1, 4 - 1, n - 1)

1,695 words8 min readRead in English

3.3.5 · Hardware › Combinational Circuits


MUX ki ZAROORAT kyun hai?


Multiplexer KYA hai — definition

inputs ke liye kitni select lines chahiye: kyunki bits inputs ko address karti hain,


Boolean expression kaise derive karein (scratch se)

Hum equation us tarah banate hain jaise ek decoder karta hai: har input ko select variables ke us minterm ke saath AND kiya jaata hai jo uski taraf "point" karta hai, aur ye saare products OR kar diye jaate hain.

2:1 MUX derivation

Hum chahte hain jab aur jab . " hone par" ko term capture karta hai; " hone par" ko capture karta hai. Toh:

4:1 MUX derivation

Do selects chaar minterms dete hain. Input tab pass hota hai jab ki value ho:

minterm passes
0 0
0 1
1 0
1 1

General n:1 MUX

jahaan select variables ka wo minterm hai jo se correspond karta hai. Ye sum-of-products literally ek decoder (minterms) hai jo AND–OR logic ko feed kar raha hai.

Figure — Multiplexers (2 - 1, 4 - 1, n - 1)

MUX as a universal function generator (80/20 gem)

Trick (Shannon expansion): ek -variable function ko chhote MUX se banane ke liye, variables ko selects pe rakho; har data input baaki bache variable ke mein se ek ban jaata hai.


Enable line

Real MUX chips mein ek enable add hoti hai. Typically (active-high), toh force karta hai (ya tri-state parts pe high-Z). Enable se tum cascade kar sakte ho aur shared bus pe tri-state kar sakte ho.


Common mistakes


Recall Feynman: ek 12-saal ke bacche ko samjhao

Socho 4 paani ke pipes hain aur ek nal jo ek baar mein sirf ek pipe se pi sakta hai. Tum ek chhota dial ghuma te ho jo 2 clicks mein chalta hai (wo hain 2 select bits = 4 positions). Dial jis number pe hai, usi pipe ka paani bahar aata hai. MUX electricity ke liye wohi magic nal hai — woh sirf ek chosen input ko single output wire pe copy karta hai, baaki sab ko ignore karta hai.


Connections

  • Decoders — har MUX ke andar minterm generator (ek MUX = decoder + OR).
  • Demultiplexers — exact inverse operation (one to many).
  • Boolean Algebra Minterms — wo SOP form jo humne derive ki.
  • Shannon Expansion — functions ko chhote MUXes pe shrink kaise karein.
  • Tri-state Buffers — enable line aur bus sharing.
  • Combinational Logic Design — MUX as universal function block.

Flashcards

Number of select lines for an N-input MUX?
.
Boolean expression of a 2:1 MUX?
.
Boolean expression of a 4:1 MUX?
.
Which data input is selected when ?
(since ).
General n:1 MUX equation?
, minterm of selects times input.
Why can a MUX implement any n-variable function?
Wire each input to the truth-table value of its row; MUX selects the correct row.
Implement XOR(A,B) on a 4:1 MUX (selects A,B). Inputs?
.
Implement XOR(A,B) on a 2:1 MUX with A on select. Inputs?
.
Difference between MUX and DEMUX?
MUX = many inputs to one output; DEMUX = one input to many outputs.
Role of the enable line?
Gates output; forces output 0 / high-Z, enabling cascading and bus sharing.
How to build an 8:1 MUX from smaller ones?
Two 4:1 MUXes (select ) feeding a 2:1 MUX (select ).

Concept Map

motivates

has

has

has

address count

chooses

selects

generalises to

generalises to

built from

implemented as

acts as

copies

Multiplexer n:1 digital switch

2^n data inputs

n select lines

One output Y

Share one bus/output

n = ceil log2 N

2:1 MUX

4:1 MUX

General n:1 SOP

Minterms of selects

Decoder AND-OR logic

Universal function generator