Priority Encoder (4-input)

Design a 4-input priority encoder where the highest-priority active input is encoded.

Contributed by Indicore

Compiler Output
Waveform Viewer