Encoder

Encodes information from inputs into an -bit code. Exactly one of the inputs should be 1s.

Priority Encoder

Priority Encoder – A priority encoder is an encoder circuit in which inputs are processed for priorities. When more than one inputs are active at the same time, the input with higher priority takes precedence and the output corresponding to that input is generated.