Multiplexer

A 2-to-1 multiplexer is a switch for signals: when its select input S is off, the output follows A, and when S is on, it follows B. It's two AND gates, a NOT and an OR, and it's how a computer chooses which value goes where.

Turn S on: Out stops following A and follows B instead.

How it works

  1. 01

    S off: the NOT turns it into a 1 for the top AND, so A gets through and B is blocked.

  2. 02

    S on: the bottom AND lets B through, and the top one blocks A.

  3. 03

    The OR passes whichever one got through.

Truth table

  • Out = A·S' + B·S
SABOut
0000
0010
0101
0111
1000
1011
1100
1111

Every circuit in the library