Question: Design an 8-to-3 priority encoder. Inputs are numbered from 0 through 7, and if two or more inputs are 1 simultaneously, the output code corresponds to the lowest-numbered input among such inputs; that is, the lowest-numbered input has priority.