BIT103 · 2081 · 5 marks
Define multiplexer. Implement 8 × 1 multiplexer using 2 × 1 multiplexer. [1+4]
Define multiplexer. Implement 8 × 1 multiplexer using 2 × 1 multiplexer. [1+4]
Quick answer
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.
Multiplexer: Definition and Implementation
Definition of Multiplexer
- An n-input multiplexer has:
2^ndata input linesnselect lines1output 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:
| Stage | MUXes Required | Output 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)
| S2 | S1 | S0 | Selected Input |
|---|---|---|---|
| 0 | 0 | 0 | I0 |
| 0 | 0 | 1 | I1 |
| 0 | 1 | 0 | I2 |
| 0 | 1 | 1 | I3 |
| 1 | 0 | 0 | I4 |
| 1 | 0 | 1 | I5 |
| 1 | 1 | 0 | I6 |
| 1 | 1 | 1 | I7 |
Working Principle
-
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
-
Stage 2 (controlled by S1):
- MUX5 selects between outputs of MUX1 and MUX2
- MUX6 selects between outputs of MUX3 and MUX4
-
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.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.