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?
View worked solution
Answer: D
Let us analyze how changing the cache associativity affects each parameter. Let:
- = Cache capacity
- = Block size
- = Associativity (number of blocks per set)
The number of sets in the cache is given by:
When the associativity is doubled () while keeping capacity and block size constant:
- Number of sets (): It is halved (). Therefore, the number of set index bits decreases by (since ). This directly changes the width of the set index decoder (Option B is affected).
- Tag bits: Since the set index bits decrease by and the block offset bits remain unchanged, the number of tag bits must increase by to maintain the same physical address width. This changes the width of the tag comparator (Option A is affected).
- Way selection multiplexer: The multiplexer must select out of ways. Since associativity is doubled, the size of this multiplexer increases from -to- to -to- (Option C is affected).
- Processor to main memory data bus: The width of this bus depends on the system architecture and the block size transferred between the cache and main memory. It is entirely independent of the internal cache associativity (Option D is NOT affected).
Free practice · Your answers on this page are not saved.
