Multiplexer vs Demultiplexer: 4 Essential Select Line Rules

Share:
Digital Electronics
Multiplexer vs Demultiplexer

A multiplexer funnels many signals down to one path. A demultiplexer takes that one path and spreads it back out again, exact mirror images of each other.

Both circuits are built entirely from select lines choosing between possibilities, and the same binary math decides how many lines each one needs.

Confusing the two is easy on paper, since both show up in the same data paths, often right next to each other in a design.

This guide separates the two clearly, then hands over a calculator for the one question every design runs into: how many select lines does a given input or output count actually require.

Select Line Calculator MUX vs DEMUX Truth Tables Real Circuit Applications

Multiplexer vs demultiplexer comes down to direction: a multiplexer is a many to one circuit that selects one of several inputs to route to a single output, while a demultiplexer is a one to many circuit that routes a single input to one of several outputs, with both using the same binary select line logic to make that choice.

A multiplexer and a demultiplexer are often described together because they solve complementary halves of the same problem, getting several signals onto one shared path and then getting them back off it.

Both circuits rely on select lines, and the number of select lines needed follows the exact same binary rule in either direction.

Multiplexer vs Demultiplexer

This article separates the two operations clearly, works through their truth tables, and includes a calculator for sizing select lines on a real design.

What a Multiplexer Actually Does

A multiplexer, often shortened to MUX, is a combinational circuit that selects one of several input signals and routes it through to a single output line.

Select lines control which input gets chosen at any given moment, acting like a rotary switch controlled by binary code instead of a hand.

A multiplexer is also called a data selector for exactly this reason, since selecting one line out of many is its entire job.

Advertisement
Advertisement

What a Demultiplexer Actually Does

A demultiplexer, shortened to DEMUX, is the reverse circuit. It takes a single input signal and routes it to exactly one of several output lines.

The same select lines that chose an input on a multiplexer now choose a destination output on a demultiplexer, same binary logic, opposite direction of travel.

A demultiplexer is also called a data distributor, since spreading one signal out across many destinations is its entire job.

Multiplexer I0 I1 I2 I3 MUX Y Demultiplexer Y DEMUX O0 O1 O2 O3
A multiplexer narrows four inputs down to one output. A demultiplexer takes one input and widens it back out to four outputs, exact mirror images of each other.

MUX and DEMUX Side by Side

Multiplexer

Many inputs, one output. Select lines choose which input passes through. Also called a data selector.

Demultiplexer

One input, many outputs. Select lines choose which output receives it. Also called a data distributor.

4:1 Multiplexer and 1:4 Demultiplexer Truth Tables

Select ASelect B4:1 MUX Output1:4 DEMUX Active Output
00I0O0
01I1O1
10I2O2
11I3O3

The exact same two select lines drive both circuits. On the multiplexer they choose which input reaches the single output. On the demultiplexer they choose which single output receives the input.

Advertisement
Advertisement

How Many Select Lines Does a Design Actually Need

Every additional select line doubles how many inputs a multiplexer can choose from, or how many outputs a demultiplexer can reach, since each line adds one more binary digit to the selection code.

1 Select Line

Chooses between 2 inputs or outputs, the smallest possible MUX or DEMUX.

2 Select Lines

Chooses between 4 inputs or outputs, the classic 4:1 or 1:4 configuration.

3 Select Lines

Chooses between 8 inputs or outputs, common in 8 channel data routing.

4 Select Lines

Chooses between 16 inputs or outputs, used where a design needs a wider bus.

MUX / DEMUX Select Line Calculator

Enter how many inputs a multiplexer needs to choose from, or how many outputs a demultiplexer needs to reach, and the calculator returns the minimum select lines required.

🔌
MUX / DEMUX Select Line Calculator
Finds the minimum select lines for a given input or output count
-
-

Two Select Line Calculations Worked Through

A design needing to multiplex exactly 8 sensor inputs down to one ADC channel lands on a clean power of two, so 3 select lines exactly cover all 8 inputs with nothing wasted.

Inputs needed = 8
Select lines = ceil(log2(8)) = 3

Capacity = 8 inputs, 0 unused

A design needing to demultiplex a signal out to 10 separate output devices does not land on a power of two, so it needs 4 select lines, which actually provide capacity for 16 outputs, leaving 6 unused.

Outputs needed = 10
Select lines = ceil(log2(10)) = 4

Capacity = 16 outputs, 6 unused
Advertisement
Advertisement

Where MUX and DEMUX Pairs Show Up in Real Systems

Time division multiplexing pairs a multiplexer and demultiplexer across a communication link, letting several parallel signals share one serial line, then splitting them back apart at the far end.

Memory address decoding uses a demultiplexer to route a CPU's read or write signal to exactly one memory chip out of many sharing the same data bus.

Display driving circuits often multiplex several LED or LCD segments onto shared drive lines, cycling through them fast enough that the eye sees a steady image instead of a flicker.

Multiplexer and Demultiplexer Do's and Don'ts

✓ Do

  • Round select lines up to the next whole number, a fractional select line does not exist
  • Check unused capacity before committing to a select line count, unused lines waste board space
  • Keep the select code stable while switching, glitches on select lines cause momentary wrong routing
  • Use a demultiplexer, not a multiplexer, whenever a single source must reach many destinations

✗ Don't

  • Confuse the two directions, a multiplexer never widens a signal out to many outputs
  • Assume every input count lands on a clean power of two, most real designs don't
  • Forget that both circuits are purely combinational, with no memory of a prior selection
  • Overlook propagation delay through the select logic on very wide, many line designs

Resources on Multiplexers and Demultiplexers

DOC
Difference Between Multiplexer and Demultiplexer
geeksforgeeks.org
DOC
The Multiplexer (MUX) and Multiplexing Tutorial
electronics-tutorials.ws
Advertisement
Advertisement

Multiplexer vs Demultiplexer Questions Students Ask

Is a multiplexer the same circuit as a demultiplexer, just wired backward?
Functionally they are mirror opposites, but they are built as distinct circuits. A multiplexer's internal logic selects one of several inputs, while a demultiplexer's internal logic routes one input to a selected output, not simply the same gates run in reverse.
How many select lines does an 8:1 multiplexer need?
3 select lines, since 2 to the power of 3 equals 8. Every doubling of input count adds exactly one more select line.
Can a decoder be used as a demultiplexer?
Yes, a decoder with an enable input functions as a demultiplexer when the data signal drives that enable line, since the decoder's address lines then act exactly like a demultiplexer's select lines.
Why do multiplexers and demultiplexers usually appear in pairs?
A multiplexer combines signals onto a shared path to save wiring or bandwidth, and a demultiplexer is needed at the other end to split that shared path back into separate signals again.
What happens if a select line count needed isn't an exact power of two?
The design rounds up to the next whole select line, which always provides more capacity than strictly needed. The extra unused inputs or outputs are simply left unconnected or tied to a fixed level.
Are multiplexers and demultiplexers combinational or sequential circuits?
Both are purely combinational. The output depends only on the current select line and input values, with no memory element storing a prior state.

External References

What We Learn Today

  • A multiplexer selects one of several inputs to a single output. A demultiplexer routes a single input to one of several outputs, the exact mirror operation.
  • Both use select lines governed by the same rule: n select lines handle 2 to the power of n inputs or outputs.
  • When an input or output count isn't a clean power of two, the select line count rounds up, leaving some capacity unused.
  • MUX and DEMUX pairs commonly work together, sharing a link then splitting it back apart, as in time division multiplexing.
"A multiplexer asks one question: which input gets through? A demultiplexer asks the mirror question: which output gets it?"

Leave a Reply

Your email address will not be published. Required fields are marked *