Question: Question - 1 : a . For a Direct mapped cache, the cache has 4 blocks with each block containing 1 word. Fill out the
Question:
a For a Direct mapped cache, the cache has blocks with each block containing word. Fill out the following table below to show the cache's state after the CPU accesses each of the following memory addresses in sequence: As an example, the table is filled for the first address. Assume that the cache is empty at the beginning. Also, report the overall hit ratio.
points
Answer:
begintabularccccccc
hline multirowtMemory Address & multirowtCache Index & multirowtHit or Miss & multicolumnlCache content after Access
hline & & & Block & Block & Block & Block
hline & & Miss & Mem & & &
hline & & Miss & Mem & & Mem &
hline & & Hit & Mem & & Mem &
hline & & Miss & Mem & & Mem &
hline & & Miss & Mem & & Mem &
hline
endtabular
No of Hits
No of Misses
Total Accesses
Hit Ratio No of Hits Total Accesses
Miss Ratio No of Misses Total Accesses
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
