10-Multiplexers and Demultiplexers Lecture
10-Multiplexers and Demultiplexers Lecture
& Demultiplexers
Digital Design. M. Morris Mano
Prof. Imane Aly Saroit Ismail 1 Logic Design
Multiplexers
The multiplexer (also known as Data Selector) is a
combinational circuit that a device that allows one of
several analog or digital input signals to be selected and
directs this input into a single output.
It has 2n data inputs, n selection lines and single output
line. One of these data inputs will be connected to the
output based on the values of selection lines.
Block Diagram
Block Diagram
Logic Diagram
S1 S0 𝟏 𝟎 𝟎 𝟏 𝟎 𝟏 𝟏 𝟎 𝟐 𝟏 𝟎 𝟑 Y
0 0 𝟎 0 0 0 I0 If ( 𝟏 𝟎 =00) Y= 𝟎
0 1 0 𝟏 0 0 I1 If ( 𝟏 𝟎 =01) Y= 𝟏
1 0 0 0 𝟐 0 I2 If ( 𝟏 𝟎 =01) Y= 𝟐
1 1 0 0 0 𝟑 I3 If ( 𝟏 𝟎 =11) Y= 𝟑
Function Table
Block Diagram
Block Diagram
Logic Diagram
15
Multiplexers with enable
Second MUX
1
1
1
1
0
0
0
0
S2
1
1
1
1
0
0
0
0
S1
1
1
1
1
0
0
0
0
S0
Building a 8x1 Multiplexer using two 4x1
Logic Design
I1
I7
I6
I5
I4
I3
I2
I0
Building a 8x1 Multiplexer using two 4x1
Multiplexers with enable
2
Using a Multiplexer to build a function
0 0 0 1 1
0 0 1 0 1
3 0 0 1 1 1
4
Example
0 1 0 3: 0 0
5 0 1 0 1 0
6 Build
0 1 F(A,B,C,D)=m(1,2,3,8,10,12,13,14,15)
1 0 0 using a 4x1
7
multiplexer.
0 1 1 1 0
8 1 0 0 0 1
9 1 0 0 1 0
10 1 0 1 0 1
11 Note
1 0 1 1 0
that some simple gate(s) may be used in addition
12 to1 this
1 multiplexer.
0 0 1
13 1 1 0 1 1
14 1 1 1 0 1
23
15 1 Prof.1 Imane
1 Aly1Saroit1 Ismail Logic Design
Using a Multiplexer Selectors
A B C D F
to build a function 0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 1
1 0 0 1 0
1 0 1 0 1
1 0 1 1 0
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
2
Using a Multiplexer to build a function
0 0 0 1 1
0 0 1 0 1
3 0 0 1 1 1
4
Example
0 1 0 3: 0 0
5 0 1 0 1 0
6 Build
0 1 F(A,B,C,D)=m(1,2,3,8,10,12,13,14,15)
1 0 0 using a 4x1
7
multiplexer.
0 1 1 1 0
8 1 0 0 0 1
9 1 0 0 1 0
10 1 0 1 0 1
11 Note
1 0 1 1 0
that some simple gate(s) may be used in addition
12 to1 this
1 multiplexer.
0 0 1
13 1 1 0 1 1
14 1 1 1 0 1
27
15 1 Prof.1 Imane
1 Aly1Saroit1 Ismail Logic Design
Using a Multiplexer
Used in
Inputs
Selectors
to build a function A B C
0 0 0
D
0
F
0
F=D
0 0 0 1 1
0 0 1 0 1
F=1
0 0 1 1 1
0 1 0 0 0
F=0
0 1 0 1 0
0 1 1 0 0
F=0
0 1 1 1 0
1 0 0 0 1
F=𝐃
1 0 0 1 0
1 0 1 0 1
F=𝐃
1 0 1 1 0
1 1 0 0 1
F=1
1 1 0 1 1
1 1 1 0 1
F=1
1 1 1 1 1
2
Using a Multiplexer to build a function
0 0 0 1 1
0 0 1 0 1
3 0 0 1 1 1
4
Example
0 1 0 3: 0 0
5 0 1 0 1 0
6 Build
0 1 F(A,B,C,D)=m(1,2,3,8,10,12,13,14,15)
1 0 0 using a 4x1
7
multiplexer.
0 1 1 1 0
8 1 0 0 0 1
9 1 0 0 1 0
10 1 0 1 0 1
11 Note
1 0 1 1 0
that some simple gate(s) may be used in addition
12 to1 this
1 multiplexer.
0 0 1
13 1 1 0 1 1
14 1 1 1 0 1
31
15 1 Prof.1 Imane
1 Aly1Saroit1 Ismail Logic Design
Used in
Using a Multiplexer Selectors Inputs
A B C D F
to build a function 0 0 0 0 0 D
0 0 0 1 1 C 0 1
F=C+D
0 0 1 0 1 0 1
0 0 1 1 1 1 1 1
0 1 0 0 0
0 1 0 1 0
F=0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 1
1 0 0 1 0
F=𝐃
1 0 1 0 1
1 0 1 1 0
1 1 0 0 1
1 1 0 1 1
F=1
1 1 1 0 1
1 1 1 1 1
Block Diagram
𝟏 𝟎 𝟏 𝟎 Function Table
𝟏 𝟎 𝟏 𝟎
Block Diagram
Logic Diagram