Im kinda stuck on some work. To find the the cpi i would need to multiply the percentage of instructions with the clock cycle but what is shown is avg stall cycles. I don't really understand how to approach this problem. Any help would be appreciated.
A computer with a 5 stage pipeline is measured and has the following characteristics
Instruction Type % of instructions. Avg. stall cycles/instructions
Branches .3 .7
Loads & Stores .2 .2
ALU ops .4 0
Other .1 .2
a) what is the average CPI for the computer?
b) What is the speedup for this machine?