GATE Computer ScienceHardGATE CS (PYQ pattern)

A memory-mapped device in a 32-bit byte-addressed system is selected when A31 = 1, A30 = 1 and A15–A12 = 0101; A3–A0 select one of its 16 byte-wide registers, and all other address bits are ignored (partial decoding). How many distinct addresses reach the device's register 0?

  1. A. 4,194,304
  2. B. 16,777,216
  3. C. 262,144
  4. D. 67,108,864

Correct answer: A. 4,194,304

Of 32 address bits, 2 (A31, A30) + 4 (A15–A12) are fixed by the select logic and 4 (A3–A0) pick the register; the remaining 22 bits (A29–A16 and A11–A4) are don't-cares, so register 0 appears at 2^22 = 4,194,304 addresses. Forgetting the two high select bits gives 16,777,216.

More Computer Organization and Architecture questions

Exams that ask this topic