PRIORITY ENCODER With FAULTS
PRIORITY ENCODER With FAULTS
In digital electronics, binary encoders are combinational logic circuits that integrate multiple
inputs, consider all input lines simultaneously, and convert them into a single encoded output. It
appears to be a disadvantage of the binary encoder. The n-bit digital encoder consists of 2n input
lines and n output lines. Priority encoders were developed based on the high priority inputs to
overcome the disadvantage of the binary encoder.
Circuit Design:
Having D1 = D3 = 1 and D0 = D2 = 0, D1 has the highest priority and so we have the Output
X1= 0, X2 = 1.
Fault injection
Stuck-at faults:
Case1: S-A-1 fault at the one input of the OR gate shown below
Fault-free circuit:
Faulty circuit
S-A-1 fault at the OR gate. In order to propagate the fault to the output, we need to sensitize the
path, so we need to try to put the 2nd input of the OR gate to 0. The output of U5 is now 1. Now
in order propagate this fault, the AND gate 2nd input should be 1, so we need to put D3=0 so that
the inverter U4 gets 1 and so the fault propagates to the output X2. The test vector 0010 detects
the s-a-1 fault at the U5 OR gate.
This circuit is just to check the faulty circuit when D1=0.(whether the fault propagates or not)
Case:2
S-A-0 fault at the OR gate input
Fault-free circuit
Faulty circuit
For the S-A-0 fault to propagate to the output X2, we need to sensitize the path i.e., we need to
put the 2nd input of the OR gate as 0, and the 2 nd input of AND gate should be 1. So, the fault
propagates to the output X2. The test vector 0011 detects the s-a-0 fault at the U5 OR gate.
This circuit just to check the faulty circuit when D1=0
The main difference between encoder and priority encoder is- the encoder generates an error
output when more than one input is high. But they are used in applications compressing data.
Hence, priority encoders are introduced to overcome the issues of binary encoders.
The priority encoder generates the accurate output by considering the highest priority input
among the multiple input lines. These can handle the interrupt requests of a microprocessor by
detecting the highest priority interrupt.
If a circuit contains multiple inputs, then it is used to reduce the number of wires required during
designing.
Applications: