379 views
2 votes
2 votes
Assume branch instructions occur 15% of the time and are predicted as not taken, while in practice they are taken 40% of the time with a penalty of 3 cycles. With forwarding, the load delay slot is one cycle and can be filled 60% of the time with useful instructions. 20% of the instructions are loads and 30% of these introduce load delay hazards. What is the New CPI due to load delay slots and branch hazards?

1 Answer

2 votes
2 votes
New CPI = 1 + CPI increase due to branches + CPI increase due to loads
= 1 + 0.15*0.4*3 + 0.2*0.3*0.4*1
= 1.204

Related questions

0 votes
0 votes
1 answer
1