Question: A system has a main memory of 1 2 8 Bytes and a cache size of 3 2 Bytes with 8 Bytes per cache block.

A system has a main memory of 128 Bytes and a cache size of
32 Bytes with 8 Bytes per cache block. Assume that the size
of each memory word is 1 byte. if the cache is organized as a
2-way set-associative cache. Find out TAG, SET, and WORD
field bits.
Block size =8 bytes =23 Bytes WORD =3 bits
Cache size =32 Bytes =25 Bytes
Number of lines = Cache size ?? Block size
=2523 Bytes =224
Number of cache lines per set =2(2-way set associative)
Number of Sets = Number of lines/lines per Set =42=2
# bits for identifying a SET =1
Total number of address bits Bytes MM=2716 Bytes main memory, Memory block size is
4 bytes, Cache of 8 Byte (cache is 2 lines of 4
bytes each ) and associative mapping
Block access sequence :
0202200200021
Find out hit ratio.
 A system has a main memory of 128 Bytes and a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!