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