The main memory of a computer has 2cm blocks while the cache has 2c blocks. If…

1999

The main memory of a computer has 2cm blocks while the cache has 2c blocks. If the cache uses the set associative mapping scheme with 2 blocks per set, then the block k of main memory maps to the set:

  1. A.

    (k(mod m)) of the cache

  2. B.

    (k(mod c)) of the cache

  3. C.

    (k(mod 2c)) of the cache

  4. D.

    (k(mod 2cm)) of the cache

Attempted by 143 students.

Show answer & explanation

Correct answer: B

image.png

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir