Background
- Both arrays have 10 integers
- Array
B[] is placed right after array A[] in the data memory. - Element A[0] is at memory
address 0x0FED CBA0. - Give the number of
cold/compulsory cache misses, and the number of conflict misses at the end
of 10 iterations of the code. - Note that the cache is only
for data values, i.e. you can ignore the impact of instruction fetching on
this cache. (Focus on accesses caused by A[] and B[], ignore the first two
lw outside of the loop)
MIPS Instructions
Attached as image.
Based on the instructions, please answer the following parts.
Questions
a. Provide number of
cold misses for direct mapped cache
b. Provide number of
conflict misses for direct mapped
c. Provide number of
cold misses for 2-way set associate cache
d. Provide number of
conflict misses for 2-way set associate cache
I have already
calculated the tag, offset, index for both A[] and B[].
So i want to check
my answer for the cold and conflict misses.


0 comments