Question: table [ [ Cache block,Set,Way, table [ [ Memory blocks that can reside in ] , [ cache block ] ] ] ,

\table[[Cache block,Set,Way,\table[[Memory blocks that can reside in],[cache block]]],[0,0,0,M0,M1,M2,dots,M31
For the purpose of this exercise, we assume that we have 512-byte
cache with 64-byte blocks. We will also assume that the main memory is 2 KB
large. We can regard the memory as an array of 64-byte blocks: M0, M1,..., M31.
Figure B.30 sketches the memory blocks that can reside in different cache blocks
if the cache was fully associative.
a.Show the contents of the table if cache is organized as a directmapped cache.
b. Repeat part (a) with the cache organized as a four-way set associative
cache
 \table[[Cache block,Set,Way,\table[[Memory blocks that can reside in],[cache block]]],[0,0,0,M0,M1,M2,dots,M31 For the purpose

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!