Professional Documents
Culture Documents
f05 Week05 PDF
f05 Week05 PDF
Implementing 4-to-1 MUX using 2-to-1 MUXs Making a 2-bit 4-to-1 Multiplexer
F
CprE 210 Lec 15 3 CprE 210 Lec 15 4
Synthesis of Logic Functions using Multiplexers Implementing 3-variable functions with 4x1 MUX
Multiplexers can be directly used to implement a function Divide the outputs into 4 groups based on X and Y.
Easiest way is to use function inputs as selection signals Write the outputs as a function of Z
Input to multiplexer is a set of 1s and 0s depending on the There are only 4 possibilities: F=Z, F=Z, F=0, F=1
function to be implemented
We use a 8-to-1 multiplexer to implement function F
XY Z F
Three select signals are X, Y, and Z, and output is F 0 0 0 0 Z Z 0 1
Eight inputs to multiplexer are 1 0 1 0 1 1 0 0 XY Z F F=Z
0 0 1 1
Depending on the input signals 0 0 0 1 0 1 0 1 0 1 2 3
0 0 1 0 F=Z' X S1
multiplexer will select proper output 0 1 1 0 4x1 MUX
0 1 0 1 1 0 0 0 Y S0
1 0 1 0 1 1 0 0 0 1 1 0 F=0
1 0 1 0
1 0 0 1 1 1 0 1 F
X S2 0 1 2 3 4 5 6 7 1 0 1 1 1 1 1 1 F=1
Y S1 1 1 0 0
Z S0 1 1 1 0
F
A B C D F A B C D F
0 0 0 0 0 0 0 0 0 0
F=D
0 0 0 1 1 0 0 0 1 1 CDCD
F=D
0 0 1 0 0 0 0 1 0 0
F=D
0 0 1 1 1 0 0 1 1 1
D D D 0 0 D 1 1
0 1 0 0 1 0 1 0 0 1
0 1 0 1 0
F=D 0 1 0 1 0
0 1 1 0 0 A S2 0 1 2 3 4 5 6 7 0 1 1 0 0 F=CD
D 1
0 1 1 1 0 F=0 B S1
8x1 MUX 0 1 1 1 0
1 0 0 0 0 C S0 1 0 0 0 0
F=0
1 0 0 1 0
0 1 2 3
1 0 0 1 0 F=CD A S1
1 0 1 0 0 F 1 0 1 0 0 4x1 MUX
F=D B S0
1 0 1 1 1 1 0 1 1 1
1 1 0 0 1 1 1 0 0 1
F=1 1 1 0 1 1
F
1 1 0 1 1
1 1 1 0 1 F=1
1 1 1 0 1
1 1 1 1 1 F=1 1 1 1 1 1
CprE 210 Lec 15 7 CprE 210 Lec 15 8
Decoder with Enable Truth Table for 2-to-4 Decoder with Enable
x1 x0 E y3 y2 y1 y0
A 2-to-4 decoder can be designed with an enable signal
If enable is zero, all outputs are zero 0 0 0 0 0 0 0
If enable is 1, then an output corresponding to two inputs is a 0 0 1 0 0 0 1
one, all others are still zero
0 1 0 0 0 0 0
The equations are
y0 = x1. x0. E E 0 1 1 0 0 1 0
y1 = x1. x0 . E 1 0 0 0 0 0 0
y2 = x1 . x0. E y0
x1 1 0 1 0 1 0 0
y3 = x1 . x0 . E y1
2-4 decoder y2 1 1 0 0 0 0 0
x0
y3 1 1 1 1 0 0 0