Question
An 8KB direct-mapped write-back cache is organized as multiple blocks, each of size 32-bytes. The processor generates 32-bit addresses. The cache controller maintains the tag information for each cache block comprising of the following.
- 1 Valid bit
- 1 Modified bit
- As many bits as the minimum needed to identify the memory block mapped in the cache.
What is the total size of memory needed at the cache controller to store meta-data (tags) for the cache?
Official answer and solution
- Official answer
- D
- From
- Official GATE 2011 answer key
Solution
Determine the address bit breakdown and total meta-data storage in bits for the direct-mapped cache controller.
- Cache capacity = 8 KB = bytes. Block size = 32 bytes = bytes.
- Block offset bits = bits.
- Number of cache lines:
- Index bits = bits.
- Tag bits per line in a 32-bit address:
- Meta-data bits per cache line:
- Total meta-data memory for all 256 lines:
D
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2011 Computer Science and Information Technology (CS)
- Question
- 43 of 65, printed as CS Q.43
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.