Computer System Architecture - Memory Hierarchy

A computer has a 256 Kbytes, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1 replacement bit.

76. The size of the cache tag directory is

  • Option : A
  • Explanation : Tag is 16 bit, 2 bit valid, 1 modified, 1 replace
    Total bits for tag entry = 16 + 2 + 1 + 1 = 20
    Size of tag array = 20 * no. of blocks
    = 160 K bits.
Cancel reply
Cancel reply

80. A cache memory unit with capacity of N words and block size of B words is to be designed. If it is designed as a direct mapped cache the length of the TAG field is 10 bits. If the cache unit is now designed as a 16-way set-associative cache, the length of the TAG field is ............... bits.

  • Option : A
  • Explanation : Type of mapping is direct map; for this direct map, 10 bits are required in its Tag. It is updated to 16 way set Associative map then new tag field size = 10 + log2 16 = 14 bits, because for k way set associative map design, log2 k bits are additionally required to the number of bits in tag field for Direct map design.
Cancel reply
Cancel reply