Ask Question
25 March, 11:07

Calculate the performance of a processor taking into account stalls due to data cache and instruction cache misses. The data cache (for loads and stores) is the same as described previously and 30% of instructions are loads and stores. The instruction cache has a hit rate of 90% with a miss penalty of 50 cycles and hit time is 1 cycle. Assume the base CPI using a perfect memory system is 1.0. Calculate the CPI of the pipeline, assuming everything else is working perfectly. Assume the load never stalls a dependent instruction and assume the processor must wait for stores to finish when they miss the cache. Finally, assume that instruction cache misses and data cache misses never occur at the same time.

+4
Answers (1)
  1. 25 March, 14:28
    0
    - 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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Calculate the performance of a processor taking into account stalls due to data cache and instruction cache misses. The data cache (for ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers