Question
Imagine we're working on a system with 65kb of memory (so pointers are 16 bits long). We have a 2-way associative cache with 16 sets
Imagine we're working on a system with 65kb of memory (so pointers are 16 bits long). We have a 2-way associative cache with 16 sets and a blocksize of 32 bytes a) How many bytes of data can we store in our cache? (don't include storage of tags, valid bits, LRU info, etc)
b) How many bits of a pointer are used as a tag?
c) What set does the pointer 0xF8C7 map to? Write you answer in decimal.
d) Assuming I access a bunch of 8-byte long values, one time each, so that the total amount of memory I access is the size of my cache, what is the lowest cache miss rate I can possibly achieve, assuming the cache is initially cold?
e) Why might my cache miss rate be worse than the answer for the previous question, even if the size of the data I access is exactly equal to the size of my cache?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started