6 Multiplexers And Demultiplexers

Digital Logic ยท Unit 6

Multiplexers and Demultiplexers

Exam-focused notes for Multiplexers and Demultiplexers (Digital Logic, BIT103): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

Multiplexers and Demultiplexers in short

A multiplexer picks one of many inputs and sends it to a single output. A demultiplexer does the reverse. They let many signals share one line, and they can also build logic functions.

Multiplexers and Demultiplexers: notes

Multiplexer design and operation

A multiplexer (MUX) is a data selector. It has $2^n$ data inputs, $n$ select lines and one output. The select lines choose which input appears at the output. It is also called a many-to-one switch.

4-to-1 multiplexer with data inputs $I_0$ to $I_3$ and select lines $S_1S_0$:

S1S0Y
00$I_0$
01$I_1$
10$I_2$
11$I_3$

$$Y = S_1'S_0'I_0 + S_1'S_0I_1 + S_1S_0'I_2 + S_1S_0I_3$$

The circuit has four AND gates (each with one data input and the decoded select code) and one OR gate. A 2-to-1 MUX has $Y = S'I_0 + SI_1$. An optional enable input turns the whole multiplexer on or off.

Uses of a MUX: data routing, parallel-to-serial conversion, sharing one communication line, and building logic functions.

Multiplexer implementation using smaller multiplexers

Large multiplexers are built from small ones in a tree.

8-to-1 MUX from two 4-to-1 and one 2-to-1. Connect $I_0$ to $I_3$ to the first 4-to-1 MUX and $I_4$ to $I_7$ to the second. Both use the lower select lines $S_1S_0$. The outputs of the two go to a 2-to-1 MUX that is controlled by $S_2$. When $S_2=0$ the first group is chosen and when $S_2=1$ the second group is chosen.

16-to-1 MUX from 4-to-1 MUXes. Use four 4-to-1 MUXes in the first level, each taking four of the 16 inputs and sharing $S_1S_0$. Their four outputs go into a fifth 4-to-1 MUX controlled by $S_3S_2$. In total five 4-to-1 MUXes are used.

The general rule: the first level takes the low select bits, and the next level takes the high select bits. Inputs are grouped in order.

What this unit covers

  • Multiplexer design and operation
  • Multiplexer implementation using smaller multiplexers
  • Function implementation using multiplexers
  • Demultiplexer circuits

Multiplexer implementation using smaller multiplexers

2081 ยท 5 marks

Define multiplexer. Implement 8 ร— 1 multiplexer using 2 ร— 1 multiplexer. [1+4]

Show solved answer

Multiplexer: Definition and Implementation

Definition of Multiplexer

A multiplexer (MUX) is a combinational circuit that selects one of many input lines and forwards it to a single output line based on select lines. It is also called a data selector.

  • An n-input multiplexer has:
    • 2^n data input lines
    • n select lines
    • 1 output line

Implementing 8ร—1 MUX Using 2ร—1 MUXes

Key Idea

  • An 8ร—1 MUX has: 8 data inputs (I0-I7), 3 select lines (S2, S1, S0), and 1 output
  • A 2ร—1 MUX has: 2 data inputs, 1 select line, 1 output

How Many 2ร—1 MUXes Are Needed?

To build an 8ร—1 MUX from 2ร—1 MUXes:

StageMUXes RequiredOutput Lines
Stage 1 (Level 1)4 ร— (2ร—1 MUX)4 outputs
Stage 2 (Level 2)2 ร— (2ร—1 MUX)2 outputs
Stage 3 (Level 3)1 ร— (2ร—1 MUX)1 output (final)

Total = 4 + 2 + 1 = 7 two-input MUXes


Circuit Description

Data Inputs        Stage 1 (S0)      Stage 2 (S1)     Stage 3 (S2)
-----------        ------------      ------------     ------------

I0 โ”€โ”
    โ”œโ”€ MUX1 โ”€โ”€โ”
I1 โ”€โ”˜  (S0)  โ”‚
              โ”œโ”€ MUX5 โ”€โ”€โ”
I2 โ”€โ”         โ”‚  (S1)   โ”‚
    โ”œโ”€ MUX2 โ”€โ”€โ”˜         โ”‚
I3 โ”€โ”˜  (S0)             โ”œโ”€ MUX7 โ”€โ”€โ”€โ”€ Y (Output)
                         โ”‚   (S2)
I4 โ”€โ”                   โ”‚
    โ”œโ”€ MUX3 โ”€โ”€โ”         โ”‚
I5 โ”€โ”˜  (S0)  โ”‚         โ”‚
              โ”œโ”€ MUX6 โ”€โ”€โ”˜
I6 โ”€โ”         โ”‚  (S1)
    โ”œโ”€ MUX4 โ”€โ”€โ”˜
I7 โ”€โ”˜  (S0)

Operation (Truth Table of Selection)

S2S1S0Selected Input
000I0
001I1
010I2
011I3
100I4
101I5
110I6
111I7

Working Principle

  1. Stage 1 (controlled by S0):

    • MUX1 selects between I0 and I1
    • MUX2 selects between I2 and I3
    • MUX3 selects between I4 and I5
    • MUX4 selects between I6 and I7
  2. Stage 2 (controlled by S1):

    • MUX5 selects between outputs of MUX1 and MUX2
    • MUX6 selects between outputs of MUX3 and MUX4
  3. Stage 3 (controlled by S2):

    • MUX7 selects between outputs of MUX5 and MUX6 to give the final output Y

Summary

An 8ร—1 MUX can be implemented using seven 2ร—1 MUXes arranged in three stages, where each stage is controlled by one select line (S0, S1, S2 respectively), progressively narrowing 8 inputs down to 1 output.

Open this answer on its own page โ†’

2079 ยท 5 marks

What is decoder? Implement 8 x 1 MUX using 2 x 1 MUX. [5]

--- A decoder is a combinational logic circuit that converts binary information from n input lines to a maximum of 2โฟ unique output lines. - It takes an n-bit binary code as input and activates exactly one of the 2โฟ output lines. - A decoder with n inputs and 2โฟ outputs is called an n-to-2โฟ decod...

Open this answer on its own page โ†’

2078 ยท 5 marks

What is decoder? Implement 8 x 1 MUX using 4 x 1 MUX. [5]

--- A decoder is a combinational logic circuit that converts binary information from n input lines to a maximum of 2โฟ unique output lines. - It "decodes" a binary code into individual signals. - For each input combination, exactly one output is active (HIGH). - An n-to-2โฟ decoder has n input line...

Open this answer on its own page โ†’

0 ยท 5 marks

Design 8 to 1 Multiplexer using two 4to 1 Multiplexers. [5]

An 8-to-1 MUX has: - 8 data inputs: Iโ‚€ to Iโ‚‡ - 3 select lines: Sโ‚‚, Sโ‚, Sโ‚€ - 1 output: Y A 4-to-1 MUX has: - 4 data inputs - 2 select lines - 1 output --- To build an 8-to-1 MUX from two 4-to-1 MUXes, we need a two-level hierarchy: - MUX 1 (Upper): handles inputs Iโ‚€ to Iโ‚ƒ - MUX 2 (Lower): handles ...

Open this answer on its own page โ†’

Demultiplexer circuits

2081 ยท 5 marks

Write short notes on: a) De-Multiplexer b) Excitation table [0+2.5+2.5]

A De-Multiplexer is a combinational logic circuit that takes a single input line and routes it to one of several output lines based on the selection inputs. - It is the reverse operation of a Multiplexer. - A DEMUX with n selection lines can route the input to 2โฟ output lines. - Also called a dat...

Open this answer on its own page โ†’