Gate | combat | Question 1
Last Updated :
15 Feb, 2022
Calculate the size of the tag and the size of the cache index and total number of bits is cache given that: Cache is direct mapped; Cache size = 8KB; Block size = 4 bytes; Memory address size = 32 bits. Which of the following is true ?
(A)
Tag bits = 19
(B)
Cache Index bits = 19
(C)
Cache Index bits = 11
(D)
A total of 2^19main memory blocks map to each cache line.
Answer: (B) (C) (D)
Explanation:
Block offset = 2 bits
Number of lines = 2^11, So, cache index bits = 11
Cache tag = 19 bits
Quiz of this Question
Please comment below if you find anything wrong in the above post
Share your thoughts in the comments
Please Login to comment...