Decoder Encoder
Decoder Encoder
Problem I: Design a 2×4 decoder using NOR gates only. Include an enable input.
Solution:
NOR is
equivalent to
AND gate with
inverted
inputs.
Implementation using NOR Gates:
𝐹2 (𝐴, 𝐵, 𝐶) = 𝛴(0,3)
F3(A, B, C) = Σ(0,2,3,4,7)
Implement the circuit using a decoder constructed with NAND gates and NAND or
AND gates connected to the decoder outputs.
Solution:
F1, F2 ,F3 are OR functions we need to get their equivalence using NAND gates.
OR is equivalent to NAND with inverted inputs.
Problem III: Implement the following Boolean expressions with a multiplexer
only:
𝐹1 (A, B, C, D) = Σ(0,1,3,4,8,9,15)
𝐹2 (𝑥, 𝑦, 𝑧) = 𝛴(1,2,3,6,7)
𝐹3 (𝐴, 𝐵, 𝐶, 𝐷) = 𝛴(1,3,4,5,10,11,12,13,14,15)
Solution:
-Full adder
truth table.
-Implementation of sum and carry outputs of FA using 2x1 multiplexers:
0 0
1
Problem V: An 8×1 multiplexer has inputs A,B and C connected to the selection
inputs S2, S1and S0, respectively. The data inputs I0 through I7 are as follows:
I1=I2=I7=0; I3=I5=1; I0=I4=D and I6=D.
Determine the Boolean function that the multiplexer implements.
Solution:
I0=D D
0
I1=0
0
I2=0
1
D
I3=1 1
I4=D D
’ 0
I5=1
I6=D A B C
’’
I7 =0
=0
Problem VI: Design a 4*2 priority encoder, such that D3 would have the highest
priority, while D0 would have the lowest priority.
Solution:
10