The 74F148 is an 8-line to 3-line priority encoder that provides three bits of binary coded output representing the position of the highest order active input, along with an output indicating the presence of any active input. It can be easily expanded via input and output enables to provide priority encoding over many bits.