Question: For a main memory with 2 5 6 bytes, a 3 2 byte cache with 4 byte ( 1 word ) blocks and 2 -

For a main memory with 256 bytes, a 32 byte cache with 4 byte (1 word) blocks and 2- way set associativity, give the index and tag for the addresses loaded in the following and show whether the following loads is a hit You must show your work for ANY credit! hit or a miss (tags in table given in binary).
index
0
1
Way 1 Tag
Way 2 Tag
0101
1010
1100
0110
2
3
0010
0000
0011
1001
i) load word from byte address 68(decimal)
ii) load word from byte address 148(decimal)For iv.-vi. assume a memory of 16MB (16*2^20 bytes) and a cache size of 512kB (512*2^10 bytes).
iv) Assume a 16-way associative cache with 1 MIPS-word blocks. Explain which bits of memory address are used for tag, index and offset.
v) Assume an 8-way associative cache with 4 byte blocks. Explain which bits of memory address are used for tag, index and offset.
vi) Assume a 32-way associative cache with 4 byte blocks. Which set would the word at memory address 10978h be placed in (in orther words, what index would it use)?

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!