Question: A computer has a 256 word memory and a 16 word cache. The cache line size is one word. The following sequence of addresses is

A computer has a 256 word memory and a 16 word cache. The cache line size is one word. The following sequence of addresses is read in series: 

0,1,2,3,4,5,10,13,16,19,21,4,8,12,30,40,41,42,35,1,3,13

Show how the cache memory would be accessed assuming that all lines are initially invalid. In each cache, mark the access as hit, capacity miss, compulsory miss, or conflict miss. Do this for each of the following. 

a. Fully associative cache 

b. Direct-mapped cache 

c. Two-way set associative cache.

0,1,2,3,4,5,10,13,16,19,21,4,8,12,30,40,41,42,35,1,3,13

Step by Step Solution

3.24 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Key Reminders Cache line size is one word All lines are initially invalid Were tracking hitcapacity ... View full answer

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 Computer Architecture Questions!