Answer:
Check the explanation
Step-by-step explanation:
Generally, average access time is :
hit rate * ( cache access time ) //since data found in cache
+
miss rate * ( cache access time + time to hit memory to get data from memory) // miss occurred
In this case, parallel access is happening, so we don't need to add cache access time when
a miss occurs. Therefore, in this case the formula becomes:
avg(time) = hit rate * ( cache access time )
+
miss rate * ( time to hit memory to get data from memory)
Given,
hit rate= 0.95
miss rate = 1- hit rate = 1-0.95 = 0.05
cache access time = 15 ns
memory access time = 220 ns
Put values in formula:
avg(time) =0.95 * 15 + 0.05 * 220
=25.25 ns