2. SLIDESMANIA.COM
What is Encoder?
• Combinational circuit
• Performs the reverse operation of
Decoder
• Maximum of 2𝑛 input lines and 𝑛
output lines
ENCODER
2
𝑛
INPUTS
𝑛
OUTPUTS
14. SLIDESMANIA.COM
Drawbacks of Encoder
• When all outputs of encoder are equal to zero.
• If more than one input is active High, then the
encoder produces an output, which may not be the
correct code.
16. SLIDESMANIA.COM
4 – 2 Priority Encoder Truth Table
INPUTS OUTPUTS
Y3 Y2 Y1 Y0 A1 A0 V
0 0 0 0 0 0 0
0 0 0 1 0 0 1
0 0 1 X 1 0 1
0 1 X X 0 1 1
1 X X X 1 1 1
X equals “dont care”, that is it can be at a logic “0”
level or at a logic “1” level
17. SLIDESMANIA.COM
4 – 3 Priority Encoder
INPUTS OUTPUTS
Y3 Y2 Y1 Y0 A1 A0 V
0 0 0 0 0 0 0
0 0 0 1 0 0 1
0 0 1 X 1 0 1
0 1 X X 0 1 1
1 X X X 1 1 1
Lowest priority
Highest priority
To check the
output is valid or
not