Multiplexers Digital Logic Design
Multiplexers Digital Logic Design
CPE241/EEE241
Multiplexers (MUX)
1
Combinational Logic
◼ Outline
❑ Introduction to Multiplexer (MUX)
❑ Applications
❑ 2x1 MUX
❑ 4x1 MUX
❑ 8x1 MUX
❑ Implementation of Boolean Expression using MUX
2
Applications
◼ A Multiplexer is used in various applications wherein
multiple data can be transmitted using a single line.
3
Multiplexer (MUX)
◼ Input
❑ 2n lines
◼ Output
❑ 1 line
4
Multiplexer (MUX)
◼ Example
❑ 2-to-1 MUX
◼ How to design?
❑ 4-to-1 MUX
❑ Selection code directs input
5
4-to-1 MUX
6
Use MUXes for Boolean Functions
◼ Concept
❑ MUX is a decoder + OR gate
❑ Use the selector to direct correct value to output
7
Use MUXes for Boolean Functions
◼ Example
❑ F(x,y,z) = (1,2,6,7)
❑ Truth table
8
Use MUXes for Boolean Functions
S1 S0
9
Use MUXes for Boolean Functions
◼ Example
❑ F(x,y,z) = (1,3,4,11,12,13,14,15)
10
Use MUXes for Boolean Functions
11
Use MUXes for Boolean Functions
◼ Example:
❑ Design a full adder using MUXes
◼ Expressions
❑ S(x,y,z) = Σ(1,2,4,7); C(x,y,z) = Σ(3,5,6,7)
12
Use MUXes for Boolean Functions
13
Prime number detector using MUX
Create a 4-bit prime number detector using multiplexer.
The circuit has four inputs, N3, N2, N1, and N0 that
correspond to a 4-bit number (N3 is the most significant
bit) and one output P that is 1 when the input is a prime
number and that is 0 otherwise.
14
Prime number detector using MUX
15
Fuel level detector using MUX
A car has a fuel-level detector that outputs the current fuel-
level as a 3-bit binary number, with 000 meaning empty and
111 meaning full. Create a circuit that illuminates a “low fuel”
indicator light (by setting an output L to 1) when the fuel level
drops below level 3.
16