Memory Hierarchy Q.41

  • Option : A
  • Explanation : 1. I-cache
    Number of blocks in cache = 4K/4 = 210 blocks.
    Bits to represent blocks = 10
    Number of words in a block = 4 = 22 words.
    Bits to represent words = 2.
    tag bits = 30 – (10 + 2) = 18.
    Each block will have it's own tag bits.
    So total tag bits =1K * 18 bits.
    2. D-cache
    Number of blocks in cache = 4K/4 = 210 blocks.
    Number of sets in cache = 210/2 = 29 sets.
    Bits to represent sets = 9.
    Number of words in a block = 4 = 22 words.
    Bits to represent words = 2
    tag bits = 30 – (9 + 2) = 19
    Each block will have it's own tag bits.
    So total tag bits = 1K * 19 bits.
    3. L2 cache
    Number of blocks in cache = 64K/16 = 212 blocks.
    Number of sets in cache = 212/4 = 1024 sets.
    Bits to represent sets = 10
    Number of words in cache = 16 = 24 words.
    Bits to represent words = 4.
    tag bits = 30 – (10 + 4) = 16
    Each block will have it's own tag bits.
    So total tag bits = 212 * 16-bits = 4K * 16-bits.
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 *