0% found this document useful (0 votes)
73 views19 pages

11-Multiplexers and Demultiplexers

The document discusses multiplexers and demultiplexers. It describes multiplexers as circuits that allow one of several input signals to be selected and output based on selection lines. Multiplexers can be combined to build more complex functions. For example, an 8x1 multiplexer can be built using two 4x1 multiplexers with common selection inputs. Multiplexers can also be used to generate the minterms of a function by using the selection lines and carefully choosing the input values.

Uploaded by

test test
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views19 pages

11-Multiplexers and Demultiplexers

The document discusses multiplexers and demultiplexers. It describes multiplexers as circuits that allow one of several input signals to be selected and output based on selection lines. Multiplexers can be combined to build more complex functions. For example, an 8x1 multiplexer can be built using two 4x1 multiplexers with common selection inputs. Multiplexers can also be used to generate the minterms of a function by using the selection lines and carefully choosing the input values.

Uploaded by

test test
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Multiplexers

& 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.

Prof. Imane Aly Saroit Ismail 2 Logic Design

1
Multiplexers
The output depends on the minterms of the Select Lines.

Block Diagram

Prof. Imane Aly Saroit Ismail 3 Logic Design

S Y
2x1 Multiplexer 0 I0 Function
Table
1 I1

Two inputs: I0, I1 𝐘 = 𝐒 𝐈𝟎 + 𝐒 𝐈𝟏


One Selector S
One Output: Y

Block Diagram Logic Diagram

Prof. Imane Aly Saroit Ismail 4 Logic Design

2
4x1 Multiplexer
S1 S0 Y
Four inputs: I0, I1, I2, I3 0 0 I0
Two Selectors: S0, S1 0 1 I1
One Output: Y 1 0 I2
1 1 I3
Function Table

𝐘 = 𝐒𝟏 𝐒𝟎 𝐈𝟎 + 𝐒𝟏 𝐒𝟎 𝐈𝟏 + 𝐒𝟏 𝐒𝟎 𝐈𝟐 + 𝐒𝟏 𝐒𝟎 𝐈𝟑

Prof. Imane Aly Saroit Ismail 5 Logic Design

4x1 Multiplexer

Block Diagram
Logic Diagram

Prof. Imane Aly Saroit Ismail 6 Logic Design

3
Multiplexer with enable
A multiplexer can have an additional input signal called
the enable which enables or disables the generated
output. So a multiplexer with enable has 2n data inputs,
an enable, n selection lines and a single output line.
In general (active high enable):
If enable=0, all the outputs=0.
If enable=1, the output chooses one of the inputs
according to the select lines.
Prof. Imane Aly Saroit Ismail 7 Logic Design

Multiplexer with enable

Block Diagram

Prof. Imane Aly Saroit Ismail 8 Logic Design

4
4x1 Multiplexer with enable
E S1 S0 Y
Four inputs: I0, I1, I2, I3 0 x x 0
Two Selectors: S0, S1 1 0 0 I0
Enable Input: E 1 0 1 I1
One Output: Y 1 1 0 I2
1 1 1 I3
Function Table

𝐘 = 𝐄 𝐒𝟏 𝐒𝟎 𝐈𝟎 + 𝐄 𝐒𝟏 𝐒𝟎 𝐈𝟏 + 𝐄 𝐒𝟏 𝐒𝟎 𝐈𝟐 + 𝐄 𝐒𝟏 𝐒𝟎 𝐈𝟑

Prof. Imane Aly Saroit Ismail 9 Logic Design

4x1 Multiplexer
with enable

Block Diagram
Logic Diagram

Prof. Imane Aly Saroit Ismail 10 Logic Design

5
Multiplexers with three state gates
Another type of multiplexer with enable, is by using
three state buffer.
In general (active high enable):
If enable=0, all the outputs=High impedance.
If enable=1, the output chooses one of the inputs
according to the select lines.

Prof. Imane Aly Saroit Ismail 11 Logic Design

Multiplexers
with three
state gates

Prof. Imane Aly Saroit Ismail 12 Logic Design

6
Building a 8x1 Multiplexer using two 4x1
Multiplexers with enable
E First Second S2 S1 S0 Y
MUX MUX
0 0 0 0 I0
The first Mux The first Mux

The Second
is working

Mux is not
0 working 0 0 1 I1
0 0 1 0 I2
0 0 1 1 I3
1 1 0 0 I4
The Second

is working
working

1 1 0 1 I5
is not

Mux

1 1 1 0 I6
1 1 1 1 I7

Prof. Imane Aly Saroit Ismail 13 Logic Design

Building a 8x1 Multiplexer using two 4x1


Multiplexers with enable

Prof. Imane Aly Saroit Ismail 14 Logic Design

7
Building a 8x1 Multiplexer using two 4x1
Multiplexers and one 2x1 Mux

Prof. Imane Aly Saroit Ismail 15 Logic Design

Quadruple Multiplexers
• Many multiplexer circuits can be combined with common
selection inputs to provide multiple-bit(s) selection logic.
• A quadruple (Quad) multiplexer is actually four
multiplexers, with common selectors.

Prof. Imane Aly Saroit Ismail 16 Logic Design

8
Quad 2x1 Multiplexers
If (Select=0)
Y=A (Yi=Ai)
(Y3=A3, Y2=A2,
Y1=A1, Y0=A0)
If (Select=1)
Y=B (Yi=Bi)
(Y3=B3, Y2=B2,
Y1=B1, Y0=B0)

Prof. Imane Aly Saroit Ismail 17 Logic Design

Using a Multiplexer to build a function


Using a multiplexer, the minterms of a function can be
generated by the selection lines and inputs.
In order to build a function of n inputs: the simplest but
not the best way, is by using a multiplexer with n selection
lines; and 2n data inputs.
The selection lines are the function’ variables. The
multiplexer inputs are either 0 or 1 according to the value
of the function according to the selectors values (in order).
Prof. Imane Aly Saroit Ismail 18 Logic Design

9
Using a Multiplexer to build a function
Example 1:
Build F(A,B,C,D)=m(1,2,8,10,11,12,13,14,15) using a
16x1 multiplexer.

Prof. Imane Aly Saroit Ismail 19 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

Prof. Imane Aly Saroit Ismail 20 Logic Design

10
Using a Multiplexer to build a function
Usually, the optimal method to build a function of n inputs,
is by using a multiplexer with n-1 selection lines, and 2n-
1 data inputs.

The selection lines are chosen from the functions’ variables


(usually the first n-1 variables).
The remaining variable is used in the multiplexer input
data: for each combination of the selection variables, the
output is evaluated as a function of the remaining variable.
Prof. Imane Aly Saroit Ismail 21 Logic Design

Using a Multiplexer to build a function


So each data input to the multiplexer either is 0 or 1 or
the remaining variable or the complement of the
remaining variable.
Example 2:
Build F(A,B,C,D)=m(1,2,3,8,10,12,13,14,15) using a 8x1
multiplexer.
Note that only NoT(s) may be used in addition to this
multiplexer.
Prof. Imane Aly Saroit Ismail 22 Logic Design

11
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

Prof. Imane Aly Saroit Ismail 23 Logic Design

Using a Multiplexer to build a function


In some cases, it is needed to build the function using a
multiplexer with a smaller size than the optimal one.
Some of the function’ variables (usually the first ones)
are used as the selection variables of the multiplexer.
The remaining variables are used in the multiplexer
input data: for each combination of the selection
variables, the output is evaluated as a function of the
remaining variables.
Prof. Imane Aly Saroit Ismail 24 Logic Design

12
Using a Multiplexer to build a function
Example 3:
Build F(A,B,C,D)=m(1,2,3,8,10,12,13,14,15) using a 4x1
multiplexer.

Note that some simple gate(s) may be used in addition


to this multiplexer.

Prof. Imane Aly Saroit Ismail 25 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

Prof. Imane Aly Saroit Ismail 26 Logic Design

13
Example 4:
Having two input A and B, build the following function using
a multiplexer with the optimal size and any other gates you
may need: If (A≠B) then F=0 else F=1.

A B F
First method:
0 0 1
F=B
0 1 0
1 0 0
F=B
1 1 1
Prof. Imane Aly Saroit Ismail 27 Logic Design

Example 4:
Second method:
If (A≠B) then F=0 else F=1.
Is equivalent to
If (AB=1) then F=0 else F=1

Prof. Imane Aly Saroit Ismail 28 Logic Design

14
Example 5:
Having a number of four bits ABCD,
build the following function using a
multiplexer with the optimal size and
any other gates you may need:
If (ABCD is and odd number) then
F=0 else F=1.
This function is equivalent to:
If (D=1) then F=0 else F=1.

Prof. Imane Aly Saroit Ismail 29 Logic Design

Example 6:
A combinational circuit consists of two inputs A,B, two
select lines S1S0 (=S) and an output F defined as follows:
• If (S=0) then 𝐅 = 𝐀
• If (S=1) then F=A+B (Addition)
• If (S=2) then F=A-B
• If (S=3) then 𝐅 = 𝐁
Build F using: a full adder, a 4x1 multiplexer, an XOR and
an inverter.

Prof. Imane Aly Saroit Ismail 30 Logic Design

15
Example 6:
• If (S1S0 =00) then 𝐅 = 𝐀
• If (S1S0 =01) then F=A+B (Use full adder with Cin =0)
• If (S1S0 =10) then F=A-B
 A + 𝐁 +1  A + (B  1)+1
Use full adder with Cin =1 and an XOR)
• If (S1S0 =11) then 𝐅 = 𝐁  B  1 (Need XOR)

S1 is used as Cin
Prof. Imane Aly Saroit Ismail 31 Logic Design

Example 6:

Prof. Imane Aly Saroit Ismail 32 Logic Design

16
Demultiplexers
The demultiplexer is a combinational circuit that
performs the inverse operation of a multiplexer. It has
one input, n selection lines and 2n data outputs.
Based on the values of selection lines, the input is
directed (transmitted) into a single output.

Prof. Imane Aly Saroit Ismail 33 Logic Design

Demultiplexers

Block Diagram

Prof. Imane Aly Saroit Ismail 34 Logic Design

17
1x4 Demultiplexer
One Input: E S1 S0 D0 D1 D2 D3
0 0 E 0 0 0
Four outputs: D0, D1, D2, D3
0 1 0 E 0 0
Two Selectors: S0, S1 1 0 0 0 E 0
1 1 0 0 0 E

𝐃 = 𝐄 𝐒𝟏 𝐒 𝟎 𝐃 = 𝐄 𝐒𝟏 𝐒 𝟎 Function Table
𝐃 = 𝐄 𝐒𝟏 𝐒 𝟎 𝐃 = 𝐄 𝐒 𝟏 𝐒𝟎

Prof. Imane Aly Saroit Ismail 35 Logic Design

1x 4 Demultiplexer

Block Diagram
Logic Diagram

Prof. Imane Aly Saroit Ismail 36 Logic Design

18
1x 4 Demultiplexer
It is clear that the logic diagram of the 1x4 Demultiplexer
resembles that of a 2x4 decoder with enable.
2x4 decoder with enable: 2x4 decoder 1x4
Two inputs, Four outputs, with enable demultiplexer

Enable. 2 Inputs 2 Selection


Lines
1x4 demultiplexer: 4 Outputs 4 Outputs
One input, Two Selectors, 1 Enable 1 Input
Four outputs.
Prof. Imane Aly Saroit Ismail 37 Logic Design

Demultiplexers
In general a 1x2n demultiplexer is equivalent to nx2n decoder
with enable.

nx2n decoder with enable 1x2n demultiplexer


n Inputs n Selection Lines
2n Outputs 2nOutputs
1 Enable 1 Input

Prof. Imane Aly Saroit Ismail 38 Logic Design

19

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy