The size of the physical address space of a processor is bytes. The capacity of a cache memory unit is bytes. The cache block size is 128 bytes. The cache memory unit can be built as a direct mapped cache or as a -way set-associative cache, where and . Let the length of the TAG field be bits for the direct mapped cache, and bits for the set-associative cache.
Which one of the following options is true?
GATE CSE 2026CO & Architecture › Memory Hierarchy & Cache OrganizationVerified
GATE CSE 2026 PYQ: The size of the physical address space of a processor is 2 32 2^{32} 2 32 bytes. The capacity of a cache…
- ACorrect answer
- B
- C
- D
Answer
(A) N = M + L N=M+L N = M + L
Approach
Use the standard address-division formula: physical address = TAG | SET INDEX | BLOCK OFFSET. Find offset bits from block size, then find the number of sets, then compute tag bits for direct-mapped and K-way set-associative caches. The relation between M and N follows directly.
The direct-mapped tag is M = 9 bits. The K-way set-associative tag is N = 9 + L bits, where K = $2^L$. Therefore N = M + L, matching option A.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.