Skip to content
Digital circuitsCHIP Chair Logo

Multiplexers

In this lesson you will see how multiplexers work and how they are implemented with logic gates.

In electronics, a multiplexer (or MUX) is a device that selects a signal from among multiple input signals and forwards it to a single output line. In the context of digital circuits, the inputs are digital (bits), although multiplexers for analog signals also exist.

Multiplexers can also be used to implement Boolean functions of multiple variables.

Example: 2-input Multiplexer

Imagine we have two different data sources, possibly two sensors, and we need a circuit that selects which of these signals will be sent to a processor.

We will design a 2-input multiplexer (in_1, in_2) and 1 output (out). A special input is the selector (Sel), responsible for choosing which of the two inputs will be sent to out.

In this example we want:

  • When Sel=1, the output should be in1.
  • When Sel=0, the output should be in2.

First, we construct the truth table with all possible values of the inputs and the selector:

Truth table

in1in2Selout
0000
0101
1000
1101
0010
0110
1011
1111

The simplified Boolean expression for the output is:

out=Selin2+Selin1

Next we draw the associated logic circuit:

example circuit

Jutge.org exercises: [Introduction to Digital Circuit Design]

Remember that to access the exercises and for the Judge to evaluate your solutions you must be enrolled in the course. You will find all instructions here.



CHIP Chair Logos

Xavier Casas, Francesc Madrid
Lliçons.jutge.org
© Universitat Politècnica de Catalunya, 2026

lliçons.jutge.org