GATE Computer ScienceVery hardGATE CS (PYQ pattern)
An 8-input priority encoder (I7 highest priority) outputs the index y (0 to 7) of the highest asserted input. Among the 255 non-zero input combinations, for how many does y equal the number of asserted inputs?
- A. 8
- B. 28
- C. 35
- D. 56
Correct answer: B. 28
If the highest asserted input is I_k, the number of asserted inputs is 1 + (number among the k lower inputs). It equals k when exactly k − 1 of the k lower inputs are asserted: C(k, k−1) = k ways. For k = 0 the count would be 1 ≠ 0, so summing k = 1..7 gives 1 + 2 + ... + 7 = 28.
More Digital Logic questions
- What is the minimum number of 2:1 multiplexers needed to realise the three-input majority function MAJ(a, b, c) = ab + bc + ca if the…
- What is the minimum number of 2:1 multiplexers needed to realise a ⊕ b ⊕ c if the constants 0, 1 and the inputs a, b, c are available but…
- Segment g of a BCD-to-seven-segment decoder (inputs A B C D, A the MSB) is on for the digits 2, 3, 4, 5, 6, 8, 9. A designer forgets that…
- A seven-segment decoder (inputs A B C D, A the MSB; codes 10-15 are don't-cares) shows 9 without its bottom segment, so segment d is on…
- A PLA (shared AND plane, OR plane per output, inputs available in true and complemented form) must realise both F1(A,B,C) = Σm(1,3,5,6)…
- A ROM converts an 8-bit unsigned binary number (0-255) into three BCD digits. The hundreds digit is stored in only 2 bits (it never…