Question: A byte addressable computer has a small data cache capable of holding 8 4 - byte lines. A code fragment generates the following sequence of
A byte addressable computer has a small data cache capable of holding byte lines. A code
fragment generates the following sequence of CPU read requests. All addresses are in hexadecimal.
Assume this code fragment is in a loop that executes four times.
Read
Read
Read
Read
Read C
Read F
Read F
Read
Read
Read C
Read C
a Show the contents of the cache data at the end of each iteration of this sequence
assuming a direct mapped cache. Assume the cache is initially empty. What is the hit rate for
this sequence?
b Repeat a assuming a fourway set associative cache organization is used instead.
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
