GATE Computer ScienceEasyGATE CS (PYQ pattern)

Two 8-input priority encoders receive the same inputs I7..I0. Encoder H gives priority to the highest-numbered asserted input, encoder L to the lowest-numbered one; both output 000 (with V = 0) when no input is asserted. For how many of the 256 input combinations are their 3-bit outputs A2A1A0 equal?

  1. A. 8
  2. B. 16
  3. C. 2
  4. D. 9

Correct answer: D. 9

The outputs agree when the highest and lowest asserted indices coincide, i.e. exactly one input is asserted (8 cases), plus the all-zero input, where both show 000 (and V = 0): 9. Forgetting the all-zero case gives 8.

More Digital Logic questions

Exams that ask this topic