Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Multiplexers
Fall 2010
Multiplexers
A multiplexer has
N control inputs
2N data inputs
1 output
Fall 2010
Multiplexers
Data
inputs
Control
input
Fall 2010
Z = A.I0 + A.I1
ECE 331 - Digital System Design
Multiplexers
MSB
I0
I1
I2
I3
LSB
Multiplexers
MSB
I0
I1
I2
I3
I4
I5
I6
I7
LSB
Multiplexers
Fall 2010
Fall 2010
Fall 2010
Multiplexer (Bus)
Fall 2010
10
Demultiplexers
Fall 2010
11
Demultiplexers
A demultiplexer has
N control inputs
1 data input
2N outputs
Fall 2010
12
Demultiplexers
Out0
Out1
In
Out2
Out3
W
X
Y
Z
W = A'.B'.I
X = A.B'.I
Y = A'.B.I
S1 S0
Z = A.B.I
A B
Fall 2010
13
Decoders
Fall 2010
14
Decoders
A decoder has
N inputs
2N outputs
N
Fall 2010
15
Decoders
Out0
I0
Out1
I1
Out2
Out3
msb
W = A'.B'
W
X
Y
Z
X = A.B'
Y = A'.B
Z = A.B
Active-high outputs
Fall 2010
16
Decoders
Out0
I0
Out1
I1
Out2
Out3
msb
W = (A'.B')'
W
X
Y
Z
X = (A.B')'
Y = (A'.B)'
Z = (A.B)'
Active-low outputs
Fall 2010
17
Decoders
msb
Fall 2010
18
Fall 2010
19
Fall 2010
20
enabled
disabled
Fall 2010
I0
I1
Out3
W
X
Y
Z
Out0
Out1
Out2
Enable
En
En
21
enabled
disabled
Fall 2010
I0
I1
Out3
W
X
Y
Z
Out0
Out1
Out2
Enable
En
En
22
Fall 2010
23
Encoders
Fall 2010
24
Encoders
An encoder has
2N inputs
N outputs
Fall 2010
25
Encoders
Fall 2010
I0
I1
I2
I3
Out0
Out1
Z
Y
26
Priority Encoders
d=0
Output is valid when at least one input is active
d=1
Why is the valid indicator needed?
Fall 2010
27
Priority Encoders
msb
Valid bit
Fall 2010
28
4 input bits
: IN STD_LOGIC_VECTOR(3 DOWNTO 0) ;
: OUT
STD_LOGIC_VECTOR(1 DOWNTO 0) ;
: OUT
STD_LOGIC ) ;
valid indicator
2 output bits
Active-high
inputs and outputs
29
Fall 2010
30
Fall 2010
31
Example:
Using an 8-to-1 multiplexer, design a logic circuit
to realize the following Boolean function
F(A,B,C) = m(2, 3, 5, 6, 7)
Fall 2010
32
Example:
Using an 8-to-1 multiplexer, design a logic circuit
to realize the following Boolean function
F(A,B,C) = m(1, 2, 4)
Fall 2010
33
Group the rows of the truth table, for the function, into
(n / 2) pairs of rows.
Fall 2010
34
Fall 2010
35
Fall 2010
36
Fall 2010
37
Fall 2010
38
Fall 2010
39
Example:
Using a 3-to-8 decoder, design a logic circuit to
realize the following Boolean function
F(A,B,C) = m(2, 3, 5, 6, 7)
Fall 2010
40
Example:
Using two 2-to-4 decoders, design a logic circuit
to realize the following Boolean function
F(A,B,C) = m(0, 1, 4, 6, 7)
Fall 2010
41