Electrical – How to design a 8 to 3 priority encoder using 4 to 2 priority encoders

encoder

This is what I've done so far and I really don't understand how to continue. The V variable is for verification

enter image description here

[EDIT]

it works for Y2 and Y0, but it doesn't work for Y1
enter image description here

Best Answer

I'm not sure how to give you a hint without giving you the complete answer.

But consider the difference between these two situations:

  • If any of the inputs to the upper encoder are asserted, then its outputs become the overall outputs, and Y2 needs to be asserted.
  • If none of the inputs to the upper encoder are asserted, then the outputs of the lower encoder become the overall outputs, and Y2 needs to be negated.