Gate2018 cs Q63

0. The size of the physical address space of a processor is 2P bytes. The word length is 2W bytes. The capacity of cache memory is 2N bytes. The size of each cache block is 2M words. For a K-way set-associative cache memory, the length (in number of bits) of the tag field is

  • Option : B
  • Explanation :
    MM space = 2P bytes
    Physical Address (PA) size = P bits
    CM size = 2N bytes
    Block size 2M words
    2M words*2W bytes/word
    2M+W bytes
    Number of lines = (CM size)/Block size ⇒ 2N/(2M+W)
    ⇒ 2N-M-W
    Number of sets = (Number in cm)/P-way
          = 2N-M-W/K
    The Address format

    ⇒ (N-M-W-log2K)
    ∴ Tag size
    ⇒ P-(N-M-W-log2K)
    ⇒ P-N+log2K)
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 *