A processor has 8 interrupt-request lines, INT0 - INT7, and INT7 has the highest priority and INT0 the lowest.
While the processor has only three interrupt request inputs (3 bits).
Design an encoder which generates the three bits representing the request with the highest priority.