Linked answer questions
Statement for Linked Answer Questions 54 and 55:
A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1 replacement bit.
Shared with question 55.
Question
The number of bits in the tag field of an address is
Official answer and solution
- Official answer
- C
- From
- Official GATE 2012 answer key
Solution
Partition the 32-bit physical address into byte offset, set index, and tag bits.
- Cache parameters:
- Total cache data size = .
- Block size = .
- Block offset bits = .
- Total cache lines:
- Set index bits:
- 4-way set associative ( lines per set).
- Set index bits = .
- Tag field bits:
- Total address size = 32 bits.
- This confirms option (C).
C
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2012 Computer Science and Information Technology (CS)
- Question
- 54 of 65, printed as CS Q.54
- 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.