Skip to content
GATEiit

GATE EE · Analog and Digital Electronics

Demultiplexers

1:2^n data distributors (demultiplexers), equivalence to n:2^n decoders with Enable input, active-low NAND output decoders, and tree expansion.

Before you start

Concept notes

1. 1-to-2^n Demultiplexer Equations and Decoder Equivalence

A 1:2n Demultiplexer (DEMUX) routes a single incoming data stream Din onto whichever single output channel Yk matches the n-bit address applied to select inputs Sn−1…S0, forcing all unselected 2n−1 lines to zero (active-high):

Yk=Din⋅mk(Sn−1,…,S0),k=0,1,…,2n−1

  • Exact Decoder Identity: Wiring single data bit Din directly into the Enable input of an n:2n binary decoder converts the decoder instantaneously into a 1:2n demultiplexer (address inputs serve as Select pins).
1 : 4DEMUXDinY0D·S1′S0′Y1D·S1′S0Y2D·S1S0′Y3D·S1S0unselected lines = 0S1 = 1S0 = 0≡2 : 4decoderDinENA1 ← S1A0 ← S0Y0Y1Y2Y3Yk = Din · mk(S1, S0)S1S0 = 10 routes Din to Y2
A 1:4 demultiplexer sends Din to the output picked by S1S_0 (here 10 → Y2); a 2:4 decoder with Din on its enable does exactly the same.

2. Realizing Arbitrary Boolean Functions Using Decoders/Demuxes

Because an n:2n decoder (with Din=1) outputs every minterm m0…m2n−1 simultaneously:

  • Active-High Output Decoder (Yk=mk): Combine target minterms through a single external OR gate (F=m1+m2+m7).
  • Active-Low Output Decoder (e.g., 74LS138, Yk=mˉk): Because De Morgan turns mˉ1⋅mˉ2‾=m1+m2, use an external NAND gate to realize Sum-of-Products (F) directly, or an AND gate to realize Fˉ (or POS).

3. Tree Expansion and Demultiplexer Block Count

Just like MUX trees, expanding a 1:M demultiplexer (or k-to-M decoder) out of smaller 1:K demuxes distributes inputs downward sequentially, taking N=⌈M−1K−1⌉ total blocks (for example, one 3:8 decoder built from 2:4 blocks uses 1 parent MSB decoder enabling 2 child decoders =3 blocks vs ⌈7/3⌉=3). Note that enabling two 3:8 decoders into a 4:16 decoder feeds MSB address bit A3 complemented into one active-low Eˉ and directly into the other.

Formulas to remember

DEMUX Output Channel LawOnly the addressed channel tracks Din; all others stay inactive
Yk=Din⋅mk(Sn−1…S0)
Active-Low Decoder SOP Logic74LS138 active-low outputs feed external NAND gate for SOP functions
F=∏k∈Σmm‾k‾  ⟹  NAND active-low lines
DEMUX / Decoder Block CountSymmetric to MUX tree expansion; 1:16 from 1:4 uses 1 + 4 = 5 blocks
Nblocks=⌈M−1K−1⌉
Memory Chip Enable DecodingPrevents bus contention in multi-chip RAM address mapping
CSˉk=Eˉ only when upper address matches k
Multi-Output Economy RuleDecoder computes all minterms once, beating p separate MUX chips
1 Decoder+p OR gates  ⟹  p simultaneous n-var functions

Common mistakes

  • Using an AND gate instead of a NAND gate on active-low decoder outputs (mˉk) when aiming for Sum-of-Products (m1+m2=mˉ1⋅mˉ2‾).
  • Forgetting which Enable pins hold active-low bubbles vs active-high when wiring cascaded decoders via MSB address lines.
  • Expecting an inactive demultiplexer channel to stay at 1 during active-high operation (inactive channels sit at 0 for active-high, 1 for active-low).
  • Confusing MUX vs DEMUX pin counts (2n inputs →1 out vs 1 in →2n outs).
  • Leaving unused upper address inputs floating on memory decoders, causing random bus contention.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Implementing Multi-Output Full Adder via 3:8 Decoder

numerical

Realize Full Adder outputs S(A,B,Cin) and Cout(A,B,Cin) using a single active-low 3:8 decoder (74138) and minimum external gates.

  1. Step 1: List minterm sets for Sum and Carry

    Try it on paper first.

Example 2: 4:16 Active-Low Decoder From Two 3:8 Decoders

conceptual

Explain how to build a 4:16 decoder (outputs Y0…Y15) from two 3:8 decoders each having one active-high enable (E1) and one active-low enable (Eˉ2) without using external logic gates.

  1. Step 1: Tie common lower address bits A2, A1, A0

    Try it on paper first.

Example 3: 1:64 Demultiplexer Tree Count Using 1:4 Demuxes

numerical

How many 1:4 demultiplexers (assuming no enable pins or tree routing directly through data lines) are required to build a 1:64 demultiplexer?

  1. Step 1: Trace fanout tree from root to leaves

    Try it on paper first.

Example 4: Detecting Bus Contention in Address Decoders

conceptual

Why must at most one active-low output of a memory address demultiplexer/decoder assert LOW at any valid clock cycle?

  1. Step 1: Identify multi-driver bus conflict

    Try it on paper first.

Previous year questions

No official GATE EE question is tagged with this topic yet. The topic test below uses practice questions.

Topic test

8 questions: original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EE syllabus; being checked by a reviewer. Updated 2026-12-04. Spotted a mistake? Use Report an issue on any question, or contact us.