Introduction To Multiplexers

How To Make A 3:1 Mux Using 2:1 Muxes

PL
idmbestpractices.ca
7 min read
How To Make A 3:1 Mux Using 2:1 Muxes
How To Make A 3:1 Mux Using 2:1 Muxes

Building a 3:1 Multiplexer from 2:1 Multiplexers: A Step‑by‑Step Guide

Multiplexers (MUX) are fundamental building blocks in digital logic design. They allow a single data line to carry multiple signals by selecting one of several inputs based on control lines. On top of that, while a 2:1 MUX is the simplest form, more complex systems often require a 3:1 or larger selector. In this article we’ll walk through how to construct a 3:1 MUX using only 2:1 MUXes, covering the logical reasoning, schematic design, truth table verification, and practical implementation tips.

Introduction to Multiplexers

A multiplexer is a device that routes one of many input signals to a single output. Which means the choice of input is governed by selector or address lines. That said, for a k:1 MUX, the number of selector lines needed is log₂(k). Thus a 2:1 MUX needs one selector line, a 4:1 MUX needs two, and so on.

Why Build a 3:1 MUX from 2:1 MUXes?

  • Component Availability: In many educational or hobbyist kits, only 2:1 MUX ICs (e.g., 74HC157) are stocked.
  • Cost Efficiency: Using fewer types of components simplifies inventory.
  • Modular Design: Building larger MUXes from smaller ones demonstrates scalable logic design principles.

Logical Foundations

2:1 MUX Truth Table

Sel I0 I1 Y
0 A B A
1 A B B

Here, Sel is the selector, I0 and I1 are the two data inputs, and Y is the output.

3:1 MUX Truth Table

Sel1 Sel0 I0 I1 I2 Y
0 0 A B C A
0 1 A B C B
1 0 A B C C
1 1 A B C A (often unused or ties to default)

The 3:1 MUX uses two selector bits (Sel1, Sel0), but only three inputs (I0, I1, I2). The fourth combination (Sel1=1, Sel0=1) is typically unused; some designs connect it to a default value or leave it floating.

Decomposing the 3:1 MUX

Observe that the 3:1 MUX can be seen as a hierarchical structure:

  1. First Stage: Use a 2:1 MUX to choose between I0 and I1 based on Sel0.
  2. Second Stage: Use another 2:1 MUX to choose between the output of the first stage and I2 based on Sel1.

On the flip side, this simple arrangement yields an output that depends on Sel1 regardless of Sel0 when Sel1=1. Practically speaking, to preserve the correct mapping for all selector combinations, we need to handle the unused combination properly. A more reliable construction uses three 2:1 MUXes in a slightly different configuration.

Three‑Stage Construction Using Three 2:1 MUXes

Step 1: First 2:1 MUX (MUX_A)

  • Inputs: I0 (A) and I1 (B)
  • Selector: Sel0
  • Output: Y_A

This MUX forwards either A or B to Y_A based on the least significant selector bit.

Step 2: Second 2:1 MUX (MUX_B)

  • Inputs: I2 (C) and a constant (e.g., logic 0 or 1)
  • Selector: Sel0
  • Output: Y_B

The purpose of this MUX is to produce a placeholder that will be ignored when Sel1=0 but will become the active input when Sel1=1. By tying its non‑selected input to a known value (often logic 0), we can later use it to mask the output when necessary.

Step 3: Third 2:1 MUX (MUX_C)

  • Inputs: Y_A (output of MUX_A) and Y_B (output of MUX_B)
  • Selector: Sel1
  • Output: Y (final output)

When Sel1=0, MUX_C selects Y_A, effectively choosing between I0 and I1 based on Sel0. When Sel1=1, MUX_C selects Y_B, which is a constant (or the value of I2 if we wired it differently). By wiring Y_B to I2 instead of a constant, we directly select I2 when Sel1=1, regardless of Sel0.

Want to learn more? We recommend why is demand curve downward sloping and who should i ask for letters of recommendation for further reading.

Final Wiring Summary

MUX Input 0 Input 1 Selector Output
A I0 (A) I1 (B) Sel0 Y_A
B I2 (C) X (unused) Sel0 Y_B
C Y_A Y_B Sel1 Y
  • X can be any logic level; it will never be chosen when Sel1=1.
  • When Sel1=0, Y = Y_A (either A or B).
  • When Sel1=1, Y = Y_B (either C or X, but X is ignored).

Thus the final output correctly implements a 3:1 MUX.

Verifying with Boolean Algebra

Let’s express the output Y in terms of the selectors and inputs:

  • Y_A = (¬Sel0 · I0) + (Sel0 · I1)
  • Y_B = (¬Sel0 · I2) + (Sel0 · X)

Since X is never selected when Sel1=1, we can ignore it in the final expression:

  • Y = (¬Sel1 · Y_A) + (Sel1 · Y_B)
    = (¬Sel1 · ((¬Sel0 · I0) + (Sel0 · I1))) + (Sel1 · (¬Sel0 · I2))

Expanding and simplifying:

  • Y = (¬Sel1 · ¬Sel0 · I0) + (¬Sel1 · Sel0 · I1) + (Sel1 · ¬Sel0 · I2)

This matches the 3:1 MUX truth table:

  • When Sel1=0, Sel0=0 → I0
  • When Sel1=0, Sel0=1 → I1
  • When Sel1=1, Sel0=0 → I2
  • When Sel1=1, Sel0=1 → (Sel1 · Sel0) term absent, so output defaults (often to 0 or previous state)

Thus the construction is logically sound.

Practical Implementation Tips

Tip Explanation
Use pull‑up/pull‑down resistors Selector lines may float if not driven; add resistors to ensure defined logic levels.
Ground the unused inputs Tie any unused input of a 2:1 MUX to a known logic level to avoid glitches.
Check IC pinout 74HC157, 74HC138, or similar ICs have dedicated control lines; ensure correct wiring.
Simulate first Use logic simulation software (e.
Keep signal paths short Minimizes propagation delay; important if selectors toggle rapidly. g., Logisim, Quartus) to verify before hardware prototyping.

Frequently Asked Questions

Q1: Can I use a single 2:1 MUX to build a 3:1 MUX by wiring the selector lines differently?

A: A single 2:1 MUX cannot provide the required two selector bits for a 3:1 MUX. You need at least two 2:1 MUXes to supply the additional selector logic, and a third to combine the results.

Q2: What if I only have two 2:1 MUXes available?

A: With only two 2:1 MUXes, you can construct a 3:1 MUX with a single unused selector combination (e.g., tying the output to a default value). Still, the output will be undefined for the fourth selector state, which may be acceptable in some applications.

Q3: How does this design scale to larger MUXes?

A: The same hierarchical principle applies. A k:1 MUX can be built from log₂(k) stages of 2:1 MUXes, each stage adding another selector bit. This forms a binary tree of selection logic.

Q4: What if I need to implement a 3:1 MUX that outputs a default value when Sel1=Sel0=1?

A: Connect the second input of the top‑level MUX (MUX_C) to the desired default value instead of I2. The logic will automatically output the default when both selectors are high.

Conclusion

Constructing a 3:1 multiplexer from 2:1 MUXes illustrates how complex digital functions can be assembled from simple, reusable blocks. But by carefully arranging three 2:1 MUXes, you can achieve the correct selection behavior for all input combinations while maintaining a clean, modular design. Day to day, this approach not only saves components but also reinforces fundamental concepts of Boolean logic, hierarchical design, and practical circuit implementation. Happy building!

New

Latest Posts

Related

Related Posts

Thank you for reading about How To Make A 3:1 Mux Using 2:1 Muxes. We hope this guide was helpful.

Share This Article

X Facebook WhatsApp
← Back to Home
ID

idmbestpractices

Staff writer at idmbestpractices.ca. We publish practical guides and insights to help you stay informed and make better decisions.