Question: 1 . Cache Performance [ 1 5 points ] Our embedded system has an 8 KB direct - mapped data cache with 8 - byte
Cache Performance points
Our embedded system has an KB directmapped data cache with byte blocks. The cache is using writeback and write allocate policy. The cache is initially empty before executing the following code.
For i;i;i
For j;j;j
Aij BjBj;
The array A and B contain byte elements. The array A has rows and columns. The array B has rows and columns. The layout for the array A is as follows. The array B has a similar layout.
Memory layout for array A
A A A A A
a points How many times does the array A cause cache misses when we running above code?
b points How many times does the array B cause cache misses when we executing above code? What type of locality do the accesses for the array B has?
c points Whats the total miss rate when we execute above code assuming cache is sufficiently big to contain array A and B
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
