2.) (20 POINTS) Assume a cache with the following parameters: b: block size give
ID: 3706669 • Letter: 2
Question
2.) (20 POINTS) Assume a cache with the following parameters: b: block size given number of words - S: number of sets - N: number of ways - A: number of address bits word: 4 bytes Using these parameters, give the formula for each item required below. 2.A.) (5 POINTS) Cache capacity C? 2.B.) (5 POINTS) Number of bits required to store the tags? 2.C. (5 POINTS) S and N for a fully associative cache of capacity C words with block size b? 2.D. (5 POINTS) S for a direct mapped cache of size C words and block size b?Explanation / Answer
Given that,
Block size = b
No. of sets = S
no.of ways = N
no.of address bits = A
word = 4 bytes
2A) Cachhe capacity:
....................
The formmula for no.of sets = cache size/ block size
=> S = Cache size / b
=> Cache size = Sb.
2B) No.of bits required to store tags:
.....................................
block size = b
Index = S/N
Then Tag = A-(S/N)-b
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.