4 To 2 Priority Encoder Circuit Diagram And Truth Table. In 4 input lines one input line is set to true at a time to get the respective binary code in the output side. The above circuit diagram contains two 2 input or gates one 4 input or gate one 2input and gate an inverter.
A truth table as you know is the most elementary definition of the behavior of a circuit. In 4 to 2 line encoder there are total of four inputs i e y 0 y 1 y 2 and y 3 and two outputs i e a 0 and a 1. The decoders and encoders are designed with logic gate such as an or gate.
Input is a 4 bit logic vector variable and output is 3 bit logic vector variable.
Below are the block diagram and the truth table of the 4 to 2 line encoder. Let us analyse a 4 2 priority encoder as an example to understand how it differs from a normal encoder and it can overcome the above mentioned two drawbacks. A 4 to 2 priority encoder takes 4 input bits and produces 2 output bits. Below are the block diagram and the truth table of the 4 to 2 line encoder.
