Question
If the associativity of a processor cache is doubled while keeping the capacity and block size unchanged, which one of the following is guaranteed to be NOT affected?
Official answer and solution
- Official answer
- D
- From
- Official GATE 2014 answer key
Solution
Analyze how doubling set-associativity alters cache address bit fields while keeping capacity and block size fixed.
-
Cache Parameters:
- Let cache capacity be bytes, block size be bytes, and set associativity be ways.
- Total blocks in cache (constant).
- Number of sets .
-
Doubling Associativity ():
- Number of sets is halved: .
- Set index bits decreases by 1 bit Width of set index decoder changes.
- Block offset bits remains unchanged.
- Tag bits increases by 1 bit Width of tag comparator changes.
- Number of ways per set doubles to Width of way selection multiplexor changes (from -to-1 to -to-1).
-
System Bus Width:
- The data bus between the processor/cache subsystem and main memory is determined by external system bus architecture and physical memory module widths.
- Internal cache organization (associativity) has no impact on this bus width. Thus, the width of the processor to main memory data bus is guaranteed to be NOT affected (Option D).
D
Thinking that tag comparator width remains constant; since index bits decrease by 1, tag bits must increase by 1 to cover the full physical address.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 2
- Question
- 54 of 65, printed as CS Q.44
- 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.