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

Can someone check this for me please? Consider a program that can execute with n

ID: 3706104 • Letter: C

Question

Can someone check this for me please?

Consider a program that can execute with no stalls and a CPI of 1 if the underlying processor can somehow magically service every load instruction with a 1-cycle L1 cache hit. In practice, 5% of all load instructions suffer from an L1 cache miss, 2% of all load instructions suffer from an L2 cache miss, and 1% of all load instructions suffer from an L3 cache miss (and are serviced by the memory system). An L1 cache miss stalls the processor for 10 cycles while the L2 is looked up. An L2 cache miss stalls the processor for 20 cycles while the L3 is looked up. An L3 cache miss stalls the processor for an additional 300 cycles while data is fetched from memory. What is the CPI for this program if 30% of the program's instructions are load instructions?

MY SOLUTION:

CPI = (.95*1+.05*(1+X))*.7

X = .98*10+.02*(10+Y)

             Y = .99*20+.01*(20+300) ...

            (.95*1+.05*(1+.98*10+.02*(10+.99*20+.01*(20+300))))*.7 = 1.066 CPI

Explanation / Answer

The above given answer 100 % correct.

We can check vice versa if we calacute the whole statement we get

cpi= 1

which means as the given description.

It abosolutly correct