Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider a cached memory system with tm = 300ns and tc = 50ns. Suppose that, on

ID: 3817289 • Letter: C

Question

Consider a cached memory system with tm = 300ns and tc = 50ns. Suppose that, on the average, an instruction requires 1.3 memory accesses. The typical instruction execution time exclusive of memory accesses is 175ns.

(a) Calculate the average instruction execution time (i.e., execution + memory access) with no cache.

(b) Calculate the average instruction execution time with each of the following cache hit ratios (assume a read through policy, that is, upon a cache miss the data is directly supplied to the CPU as well as the cache) : h = 0.90 h = 0.95 h = 0.98

Explanation / Answer

Solution:

a)

Average instruction execution time= 175+(1.3*300)= 565 ns

b)

when the hit ratio is 0.9 then

Average instruction execution time= 175+1.3*((0.9*50)+(0.1*300))= 272.5 ns

when the hit ratio is 0.95 then

Average instruction execution time= 175+1.3*((0.95*50)+(0.05*300))= 256.25 ns

when the hit ratio is 0.98 then

Average instruction execution time= 175+1.3*((0.98*50)+(0.02*300))= 246.5 ns

I hope this helps. Don't forget to give a thumbs up if you like this

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote