Memory Hierarchy questions

Q38

GATE CS 2026 CS-1Memory HierarchyMCQ2 marks−2/3 if wrong
The size of the physical address space of a processor is 2322^{32} bytes. The capacity of a cache memory unit is 2232^{23} bytes. The cache block size is 128 bytes. The cache memory unit can be built as a direct mapped cache or as a KK-way set-associative cache, where K=2LK = 2^L and L∈{1,2,3}L \in \{1, 2, 3\}. Let the length of the TAG field be MM bits for the direct mapped cache, and NN bits for the set-associative cache.

Which one of the following options is true?
Show answer without attempting

Answer: A

Q52

GATE CS 2026 CS-2Memory HierarchyMSQ2 marks
Consider a system with a processor and a 4 KB direct mapped cache with block size of 16 bytes. The system has a 16 MB physical memory. Four words P, Q, R, and S are accessed by the processor in the same order 10 times. That is, there are a total of 40 memory references in the sequence P, Q, R, S, P, Q, R, S,…

Assume that the cache memory is initially empty. The physical addresses of the words are given below (1 word = 1 byte).

P: 0x845B32, Q: 0x845B26, R: 0x845B36, S: 0x846B32

Which of the following statements is/are true?

Note: 1K=2101\text{K}=2^{10} and 1M=2201\text{M}=2^{20}
More than one option can be correct.
Show answer without attempting

Answer: A, B

Q56

GATE CS 2026 CS-2Memory HierarchyNAT2 marks
Consider a system with 1 MB physical memory and a word length of 1 byte. The system uses a direct mapped cache, with block numbers starting from 0. The word with physical address 0xA2C28 is mapped to the cache block number 17610176_{10}. The maximum possible size of the cache (in KB) for this configuration is ___________. (answer in integer)

Note: 1K=2101\text{K}=2^{10} and 1M=2201\text{M}=2^{20}
Show answer without attempting

Answer: 128

0/30 correct0 marks

Related topics in Computer Organization and Architecture