• retagged by
2,034 views
3 3 votes
what will be size of main memory. when 4-way set associative mapping  of cache memory is done and cache size is 256 KB and Tag field has 7 bits( consider, memory is byte addresable )

2 Answers

1 1 vote

Just Find Total number of bits in tag when direct mapped cache.

7bit tag given in 4way set associative so in direct mapped cache it is of 7-2 =5bits tag.

So main memory is 25 times bigger than cache memory.

So main memory size = 32×256KB =8MB

If you get logic you can do directly without conversion.

1 1 vote
tag set  block size
7 x y

cache size=no.of set*lines per set*size of set

256 KB=4*2y*2x

216  = 2y*2x

x+y=16

The number of bits in physical address=7+x+y=23

The main memort size =223 = 8 MB

Position:
Show:

Related questions

76 76 votes
9 answers 9 answers
40.9k
40.9k views
Kathleen asked Sep 13, 2014
40,883 views
The access times of the main memory and the Cache memory, in a computer system, are $500$ n sec and $50$ nsec, respectively. It is estimated that $80\%$ of the main memor...
0 0 votes
1 1 answer
110
110 views
DΛΞMON asked Sep 28
110 views
$\begin{array}{l}\textbf{Q. } \text{A processor has the cache hierarchy as given. Assume that 20\% of instructions are}\\\text{load/store instructions. The remaining 80\%...
2 2 votes
1 1 answer
169
169 views
naveendewangan asked Aug 2
169 views
Assume 15% of L1 misses are resolved in the victim cache. If retrieving data from the victim cache takes 4 cycles and retrieving data from main memory take 50 cycles, by ...