8-to-3 Priority Encoder — IC 74HC148

74HC148 PRIORITY ENCODER I7 > I6 > ... > I0 Code: I0 I1 I2 I3 I4 I5 I6 I7 A2 A1 A0 GS 0 I0 0 I1 0 I2 0 I3 0 I4 0 I5 0 I6 0 I7★ 0 A2 0 A1 0 A0 0 GS
Priority: None
Code: — (0b—)

Priority Table

Highest ActiveA2A1A0GS
None (all 0)0000
I0 (lowest) 0001
I1 0011
I2 0101
I3 0111
I4 1001
I5 1011
I6 1101
I7 ★ (highest)1111

Priority Resolution

When multiple inputs are active simultaneously, the output always reflects the highest-indexed active input (I7 has maximum priority).

GS — Group Select

GS goes HIGH when any input is active. Used for cascading multiple 74HC148 chips to create 16-to-4 or larger encoders.

Encoder vs Decoder

An encoder collapses N inputs → log₂N outputs. A decoder expands log₂N inputs → N outputs. They are inverse operations.