Multiplexers (MUX): Selection Logic, Boolean Function Realization and GATE Worked Examples

Learn how a MUX selects data, realizes Boolean functions, and scales through cascading. Trace two exact circuits and repair the mistakes that usually change the answer.

KnowledgeGate Team

Exam prep & CS education

Updated 20 Sep 20265 min read71 views

A multiplexer makes one decision: the select bits form a binary index, and the indexed data input reaches the output. Reading 10 as the second wire instead of index 2, reversing selector order, or ignoring enable polarity changes the result. The same index rule governs 4:1 traces, Boolean-function wiring and cascaded MUXes.

Related reading: MUX function implementation and Multiplexer MCQs.

Multiplexer fundamentals: one selected input, one output

A multiplexer, or MUX, is a combinational many-to-one data selector. With n select lines, it can address 2^n data inputs. A 2:1 MUX needs one selector, a 4:1 needs two, and an 8:1 needs three.

Keep four roles separate: data inputs carry values, select inputs choose an index, the output carries that value, and an optional enable controls operation. MUXes belong to the wider Digital Logic route covered in CS Fundamentals for Exams & Placements.

Use + for OR, adjacency for AND, and an apostrophe for complement. For a 2:1 MUX, the selector equation is:

Y = S'I0 + SI1

At S=0, this becomes Y=(1)I0+(0)I1=I0. At S=1, it becomes Y=(0)I0+(1)I1=I1. With an active-high enable E, the equation is Y=E(S'I0+SI1). An enable bubble on a symbol instead indicates active-low control.

For a 4:1 MUX, let S1 be the more significant selector bit and S0 the less significant bit:

Y = S1'S0'I0 + S1'S0I1 + S1S0'I2 + S1S0I3

For every selector value, exactly one selector product equals 1, so only one data input reaches Y.

A 4:1 MUX worked example: trace every selector value

Take an active-high MUX with E=1 and (I0,I1,I2,I3)=(1,0,1,0).

S1S0

Selected input

Y

00

I0

1

01

I1

0

10

I2

1

11

I3

0

The selector 10 is binary index 2, so it selects I2, not the second item counted visually.

Now substitute S1=1 and S0=0 into the equation:

Y=(0)(1)(1) + (0)(0)(0) + (1)(1)(1) + (1)(0)(0)

Y=0+0+1+0=1

The table and algebra agree. Under this active-high convention, E=0 forces Y=0 regardless of the data. If your table and equation disagree, inspect the S1S0 order and enable polarity before changing data values.

A 4:1 multiplexer with inputs I0=1, I1=0, I2=1, I3=0 and select lines S1=1, S0=0 choosing index 2, so output Y equals I2=1.

Boolean function realization with a 4:1 MUX

Consider F(A,B,C)=Σm(1,2,6,7). Choose A=S1 and B=S0, then hold each AB pair fixed while C changes from 0 to 1.

AB

F at C=0, C=1

Required data input

00

(0,1)

I0=C

01

(1,0)

I1=C'

10

(0,0)

I2=0

11

(1,1)

I3=1

Pair 00 covers m0,m1. Only m1 is present, giving (0,1)=C. For m2,m3, only m2 is present, giving (1,0)=C'. Neither m4 nor m5 is present, so 10 gives 0. Both m6 and m7 are present, so 11 gives 1.

Three direct checks confirm the wiring:

  • ABC=001 selects I0=C=1, so F=1.

  • ABC=010 selects I1=C'=1, so F=1.

  • ABC=011 selects I1=C'=0, so F=0.

Choose n-1 variables as selectors for a 2^(n-1):1 MUX. Inspect the remaining variable across each pair, then assign its data input from {0,1,X,X'}. The Boolean Algebra and K-map Minimization Guide helps when you want to simplify before hardware realization.

A 4:1 multiplexer realizing F(A,B,C)=Σm(1,2,6,7) with A on S1, B on S0 and data inputs I0=C, I1=C', I2=0, I3=1 feeding output F.

Cascading MUXes: build and trace an 8:1 selector

Build an 8:1 selector from two 4:1 MUXes and one 2:1 MUX. Feed D0-D3 into the lower block and D4-D7 into the upper block. Connect S1,S0 to both. Their outputs feed the 2:1, where S2=0 chooses the lower group and S2=1 the upper.

Use the vector (D0,D1,D2,D3,D4,D5,D6,D7)=(0,1,0,0,1,0,1,1) at S2S1S0=110. The shared local selector is S1S0=10. The lower block therefore produces D2=0, while the upper block produces D6=1. Since S2=1, the final stage chooses the upper result, giving Y=D6=1.

For the global check, binary 110 equals decimal 6, so the circuit must return D6. Both routes give 1.

MUX, decoder and demultiplexer: do not confuse selection direction

These blocks use binary codes differently. A shared index does not make them interchangeable.

Block

Data direction

Selector or code role

Example at code 10

4:1 MUX

Four inputs to one output

Chooses an input

Reads I2

2-to-4 decoder

Code to one active output

Decodes the input code

Asserts Y2

1:4 DEMUX

One input to four outputs

Chooses an output path

With D=1, sends 1 to Y2

Adder

Inputs to a new arithmetic result

No routing selection

Computes a sum

For deeper decoder, DeMUX and encoder treatment, use DeMUX, Decoder and Encoder Explained: Truth Tables, Worked Circuits and Exam Traps. That earlier article owns code-to-line decoding, data routing to an output, and line-to-code encoding; this section only contrasts those directions with a MUX's many-to-one input selection.

Multiplexer mistakes: why the answer changes and how to repair it

Mistake

What goes wrong

Repair

Selector reversal

S1S0=10 is read as index 1 instead of 2

Write 00,01,10,11 beside I0,I1,I2,I3

Local and global indices mixed

Local 01 in the upper cascade group is called D1

Label it local input 1, global input D5

Enable polarity ignored

A bubbled enable is treated as active-high

Mark the asserted level before tracing

Truth table grouped wrongly

The data inputs no longer reproduce the minterms

For selectors A,B, use (m0,m1), (m2,m3), (m4,m5), (m6,m7)

Don't-care forced to zero

A valid simplification opportunity is lost

Choose each don't-care as 0 or 1 to simplify

A don't-care symbol is not automatically 0. If a problem also names an ordinary variable X, label the don't-care separately, such as d, so the two meanings cannot be confused.

How GATE-style questions test multiplexers

Representative questions ask you to trace Y, derive inputs for a Boolean function, count selectors, build a larger MUX, or compare MUX and decoder realizations. Selector order, enable polarity and permitted block size are the constraints to mark beside the circuit before tracing it.

A 16:1 MUX needs log2(16)=4 select lines. Using only 4:1 blocks, four first-level MUXes select within D0-D3, D4-D7, D8-D11, and D12-D15 through S1,S0. One final 4:1 selects among their outputs through S3,S2. Total: 4+1=5 blocks.

For a quick verification routine, convert the selector to a binary index, check enable polarity, label the chosen input, and test one truth-table row after realizing a function. Then use Combinational Circuits MCQs: 12 Solved MUX and Adders for follow-on practice.

Multiplexers: the short version and next step

Revision card: n selectors address 2^n inputs, a MUX routes a selected value, and S1S0=10 selects index 2. On a 4:1 MUX, every selector pair reduces the remaining variable to 0,1,C, or C'.

Now reproduce four checkpoints without looking. The 4:1 trace at 10 gives I2=1. The function Σm(1,2,6,7) maps to (I0,I1,I2,I3)=(C,C',0,1). The 8:1 cascade at 110 returns D6=1. A 16:1 circuit built only from 4:1 blocks needs five blocks. Any mismatch tells you exactly which section to revisit.

Use GATE Guidance by Sanchit Sir when you want Digital Logic sequenced inside a wider GATE preparation route. If only this concept is weak, rework the two exact examples and then attempt the linked MUX practice set.