in Operating System recategorized by
498 views
0 votes
0 votes

Ans 128

in Operating System recategorized by
by
498 views

4 Comments

Here how to find Tag if MM Size is given
0
0
Please reply
0
0

as we know cpu size is 32 bit 

cache size = 256KB = 2$^{18}$B

block size = 32B = 2$^{5}$B

and they ask tag directory  remember

tag directory = no of bit in tag field * no of cache line      (without associativity)

no of cache line =  $\frac{cache size}{block size}$ =$\frac{2^{18}}{2^{5}}$ =2$^{13}$

now cache line is 4 way set associative so   2$^{13}$/4 = 2$^{11}$

now the formate is look like 

 

|__tag= 16_bit_____________|_______#of cache line set =11___________|_____block offset= 5__________|

 

tag directry  =  16 *  2$^{13}$  { by using tag directory = no of bit in tag field * no of cache line  

 =128Kb

 

4
4
2
2

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
4
SKMAKM asked in Calculus Oct 22, 2022
420 views
SKMAKM asked in Calculus Oct 22, 2022
by SKMAKM
420 views