Memory Hierarchy Q.39

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

  • Option : B
  • Explanation : Since the cache has 2c blocks and there are 2 blocks per set, the cache thus has c sets. So, block k of the main memory would map to block (k mod c) of the cache.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *