Skip to main content

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…

The size of the physical address space of a processor is 2322^{32} bytes. The capacity of a cache memory unit is 2232^{23} bytes. The cache block size is 128 bytes. The cache memory unit can be built as a direct mapped cache or as a KK-way set-associative cache, where K=2LK=2^{L} and L∈{1,2,3}L \in\{1,2,3\}. Let the length of the TAG field be MM bits for the direct mapped cache, and NN bits for the set-associative cache.

Which one of the following options is true?

  1. A
    N=M+LN=M+L
    Correct answer
  2. B
    N=M−LN=M-L
  3. C
    N=M+KN=M+K
  4. D
    N=M−KN=M-K

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.