Answer :
Answer:
- Calculate the additional CPI due to the icache stalls.
- Calculate the additional CPI due to the dcache stalls.
- Calculate the overall CPI for the machine.
The additional CPI due to icache stalls = Hit Rate * Hit Latency + Miss Rate*
Miss Penalty = 0.9*2 + 0.1*50 = 1.8 + 5 = 6.8
The additional CPI due to dcache stalls = 0.92*2 + 0.08*124 = 11.76
The overall CPI = 0.3*11.76 + 0.7*1.0 + 1.0*6.8 = 11.03 7.
Explanation: