348 views
0 votes
0 votes

Given that 4 GB and 2 MB are the respective sizes of main memory and cache. Find the most appropriate tag bit length. Assume the block size is same in both cache and main memory and direct mapping is used with byte addressable memory.
 

  • (A)10
  • (B)11
  • (C)12
  • (D)13

Ans given op(b)........but how it possible bez there is no block size given.....plz someone explain this

1 Answer

Best answer
4 votes
4 votes

Suppose block size=2x B
no of main memory blocks=232/2x =232-x 
no of cache memory blocks or lines =221/2x =221-x 
suppos tag bits =y
hence 2is no of main memory block matches to one cache memory line
2y=232-x /221-x =211
hence tag bits= 11

edited by

Related questions

0 votes
0 votes
0 answers
1
Ray Tomlinson asked Aug 22, 2023
242 views
is this formula is correct if it is correct then in gate 2006 Question 75 why they not used this formulahttps://gateoverflow.in/43565/gate-cse-2006-question-75
2 votes
2 votes
1 answer
2
0 votes
0 votes
1 answer
4
Mrityudoot asked May 22, 2023
195 views
Under what category does Universal Serial Bus fall: System Bus or a Network connection or something else?