Home › Lessons › Digital logic › 2-to-1 multiplexer

2-to-1 multiplexer

Digital logic · Beginner · about 10 minutes · part of Zen’s Electronics Design Mastery

A multiplexer is a digital selector switch. With S = 0 the output copies input A, with S = 1 it copies input B. Y = A·S̅ + B·S. It routes data, and a bank of them makes a CPU’s data paths.

2-to-1 multiplexer: the circuit on the simulator's bench

Open this lesson in the labFree, in your browser, no account needed.

How it works

Y = A·S̅ + B·S. Switch 1 is A, switch 2 is B, switch 3 is the select line S.

SABYbench
0000—
0010—
0101—
0111—
1000—
1011—
1100—
1111—

Flip the switches to try every row. “bench” fills in with what the chip actually did.

Try it on the bench

  1. Set A = 1 and B = 0, then flip S: the output follows whichever input S selects.
  2. A 74HC157 packs four of these into one chip, sharing one select line.

Parts on the bench

In the course

Zen’s Electronics Design Mastery, module “Digital Electronics”.

More on digital logic