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?
- A. 4,194,304
- B. 16,777,216
- C. 262,144
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- An 8 KB cache with 16-byte blocks and 32-bit addresses can be built fully associative or 4-way set-associative. How many more tag bits…
- Processor A runs a program at 3.0 GHz with CPI 1.6. Processor B, with the same ISA and the same compiled program, runs at 2.4 GHz. What is…
- A write-back cache has 64-byte blocks, 2 ns hit time and 5% miss rate. Over an 8-byte bus, memory delivers the first 8 bytes 60 ns after a…
- An 8 × 8 matrix is stored in 8 memory banks. A bank is busy for 6 cycles after an access starts (an access started in cycle t completes at…
- The IEEE 754 single-precision word 0xC1E80000 is multiplied by 2⁻¹³¹ (the result is exact). What is the bit pattern of the product?
- A radix-4 (modified) Booth multiplier handles an unsigned 32-bit multiplier. How many partial products must it generate in the worst case…