Question: I got confused by this, because usually with direct mapping we already know the first 3 are going to be misses because they're not in

I got confused by this, because usually with direct mapping we already know the first 3 are going to be misses because they're not in the cache yet. Inorder to find where a number goes, we do mod 3 since thats the size of the cache. So if we do 2 mod 3 we got 2, so it gets placed in the second position. Now if we do 8 mod 3 that also has to get placed in the second position. I just got confused on how i would write it since we already have to replace something and we haven't even wrote the first 3 numbers which are all supposed to be misses.

I got confused by this, because usually with direct mapping we already

Q. Assume a system with direct mapped cache of size 3, initially empty. Complete cache mapping chart for each memory access, and provide total memory access time, if main memory access time is 28ns and cache access time is 3ns (penalty time =1ns ) (26 points)

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!