1,790 views
4 votes
4 votes

If main memory  $=128 \ KB$ and cache memory is of $2KB$ with $16B$ lines .and uses associative mapping .
What would be the # of bits used for Tag for each block?

1 Answer

0 votes
0 votes
the correct answer is option a

main memory size = 128 kb = 2 ^7 * 2^10  = 2^17 bytes

cache memory size = 2 kb = 2^10 bytes

no of lines = 16 bytes

cache offset = cache memory size \ no of lines = 2^10\2^4 = 2^6 bytes

number of bits in cache offset = 6 bits

as total main memory size = 17 bits

tag bits = 17 - 6 = 11 bits

Related questions

3 votes
3 votes
1 answer
2
Shubhanshu asked Aug 5, 2017
1,039 views
Draw the diagram which shows the mechanism of fetching the data in 2-way set associative mapping using multiplexer, comparator, and encoder?
0 votes
0 votes
2 answers
4
Alakhator asked Oct 19, 2018
684 views
What is the number of multiplexers required in set associative mapping hardware ? Given set bits are S, tag bits are T and word bits are W.