Session 05 Mux Demux
Session 05 Mux Demux
Session No: 05
AIM OF THE SESSION
LEARNING OUTCOMES
• A multiplexer is a combinational circuit that has M selection lines, 2 N input lines and a single output line.
• It is also called a data selector and control inputs are termed select inputs.
2X1 MULTIPLEXER
𝐼0
S Y
𝐼0 2x1 Y
𝐼1 0 Y
MUX 𝐼1
1
S
S
Boolean Expression,
Y=+
4X1 MULTIPLEXER
𝐼0
Y
𝐼0 𝐼1
𝐼1 4x1 Y
0 0
𝐼2
𝐼2 MUX 0 1
Y
𝐼3 𝐼3
1 0
𝑆 1𝑆 0 1 1
𝑆 1𝑆 0
Boolean Expression,
Y = +++
Implementation of Boolean Function using Multiplexers
Solution: A B C F (A,B,C)
𝑉 𝑐𝑐 0
0 0 0 1 𝑉 𝑐𝑐 1
0 0 1 1 GND 2
0 1 0 0
GND 3 8X1 𝐹
𝑉 𝑐𝑐 4
0 1 1 0 GND 5
1 0 0 1 𝑉 𝑐𝑐 6
𝑉 𝑐𝑐 7
1 0 1 0
1 1 0 1 = Logic 1
1 1 1 1 GND = Logic 0 𝐴𝐵𝐶
Ex.2) Implement the function using 4X1 MUX considering C as Input line and A, B as
selection lines.
Solution:
a) Implementation Table b) Logic Diagram
Ex.3) Develop an Arithmetic Logic Unit (ALU) by using a 4-to-1 Multiplexer.
Solution:
Ex.4) Design a 8x1 multiplexer using two 4*1 multiplexer and one 2x1 multiplexer.
Solution:
APPLICATIONS OF A
MULTIPLEXER
2
0
1
APPLICATIONS OF A MULTIPLEXER
MEMORY ADDRESS
MEMORY UNIT
Block 1
Block 2
Block 3
Block 4
MUX CPU
Block 5
Block 6
Block 7
Block 8
De-multiplexer
• A De-multiplexer is a combinational circuit that has only 1 input line and 2M = N output lines and M
selection lines.
• Demultiplex means one into many. By applying control signals, we can steer the input signal to one
of the output lines.
M Selection Lines
1 x 2 DEMULTIPLEXER
D
Input S 𝑌0
1x2 𝑌0
D
DEMUX 𝑌1 D 0 D 0
D 1 0 D 𝑌1
S
S
Boolean Expression,
=D
=D
DEMULTIPLEXER : 1X4
Input D
𝑌0 𝑌0
1x4 𝑌1 D 0 0 D 0 0 0
D 𝑌2
DEMUX 𝑌1
𝑌3 D 0 1 0 D 0 0
D 1 0 0 0 D 0
𝑆0 𝑆1 𝑌2
D 1 1 0 0 0 D
𝑌3
Boolean Expressions,
=D 𝑆 0𝑆 1
=D
=D
=D
APPLICATIONS OF DEMUX
SELF-ASSESSMENT QUESTIONS
1. What is a multiplexer?
A. It is a type of decoder which decodes several inputs and gives one output
B. A multiplexer is a device which converts many signals into one
C. It takes one input and results into many output
D. It is a type of encoder which decodes several inputs and gives one output
2. A 4-to-1 MUX has ________ input lines and ________ select lines.
A. 2, 1
B. 4, 2
C. 8, 2
D. 1, 4
SELF-ASSESSMENT QUESTIONS
4. In a 4-to-1 MUX, if the select lines are 01, which input line will be selected?
A. Input 0
B. Input 1
C. Input 2
D. Input 3
TERMINAL QUESTIONS
Reference Books:
1. Computer System Architecture by M. Moris Mano
2. Fundamentals of Digital Logic with Verilog HDL by Stephen Brown and ZvonkoVranesic