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 84-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 300
Read 301
Read 302
Read 304
Read 30C
Read 3F4
Read 3F0
Read 300
Read 304
Read 31C
Read 34C
a)[20] 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)[20] Repeat (a) assuming a four-way set associative cache organization is used instead.
 A byte addressable computer has a small data cache capable of

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!