Beruflich Dokumente
Kultur Dokumente
1. Multiplexers:
a. 4-to-1 Multiplexers.
b. Design of 8:1 Multiplexers.
2. Demultiplexers.
3. Encoders.
4. Examples.
1. Multiplexers
S 1
S 0
0 0
P0
0 0 0 1
1 0
0 1 P1 1 1
P2 F
1 0 Output
P3
1 1 MUX
MUX implementation
S1 s 1 s0 s0
Select
P0 S0 0 MUX
S1 1 G 0
P1 P0 3
F
Input
P1 Output
F P2
P2 P3
Select
S0 0 S0 0
S1 1 S1 1
M M
P0 U P0 U
X X X X
Input
Input
1 2
P1 1 P1 2
P2 P2
P3 P3
S2 0 M
U
X1 X F S2 X 1 S2 X 2
3
X2
S0 0
S1 1 M
P0 U
X
P1 1
P2 S2
P3 M
U
0
X F
S0 0 3
S1 1 M
1
P U
4
X
P5 2
P6
P7
Outputs
Input
P1
X
P2
P3
MUX
S1 s1 s0 s0
P0 X
P1 X
P2 X
X P3 X
Internal logic circuit for 1-4
DEMUX
Explain:
X
C F X When C 1
inputs Output
Two select lines four outputs
0 0 0
0 1 0
1 0 0
1 1 1
3. Encoders
Inputs Outputs
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
Output is equal to 1 when the input digit is 4, 5, 6 or 7.
Output is equal to 1 when the input digit is 2, 3, 6 or 7.
Output is equal to 1 when the input digit is 1, 3, 5 or 7.
D0 D1 D2 D3 D4 D5 D6 D7
X
4. Examples
4.1) Active-low decoder:
So we can use active-low decoders to implement arbitrary functions
too, but as a product of maxterms.
For example, the implementation of the function
Solution:
4.3) A certain logic circuit has four inputs A, B, C, and D. The output
X of the circuit is logic 1 if two or more inputs are logic 1.
a) Write the truth table for this circuit.
Solution:
A B C D X
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 1
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 0
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
b) Implement the function using one decoder with active low output.
A B C D X Maxterm
0 0 0 0 0 M 0 A B C D
0 0 0 1 0 M 1 A B C D
0 0 1 0 0 M 2 A B C D
0 0 1 1 1
0 1 0 0 0 M 4 A B C D
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 0 M 8 A B C D
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
X ( A , B ,C , D ) M 0 , M 1 , M 2 , M 4 , M 8
f x , y , z 2,3, 4, 7
Solution:
x y z f
0 0 0 1
I0
0 0 1 1
0 1 0 0
I1
0 1 1 0
1 0 0 0
I2
1 0 1 1
1 1 0 1
I3
1 1 1 0
4.5) The following figure shows a 4-input multiplexer connected to
implement a function F of three Boolean variables A, B, C.
B 0 MUX 0
G
3
C 1
0 0
1 1
A 2
0 3