Presentation 23
Presentation 23
Cache
Question:
Consider a fully associative mapped cache of size 16 KB with block size 256 bytes. The size of main memory is 128 KB. Find
Tag directory size
(GATE CSE 2017 Set 1)
a. 69byte
b. 74byte
c. 72byte
d. 67byte
Solution:
Given-
Cache memory size = 16 KB
Block size = Frame size = Line size = 256 bytes
Main memory size = 128 KB
We have,
Number of Bits in
Tag-
Number of bits in tag
= Number of bits in physical address –
Number of bits in block offset
= 17 bits – 8 bits
• Number of Lines in Cache-