0

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?

user3562229
  • 1
  • 1
  • 2

1 Answers1

0

In your last comment, you have the correct weighted average of stall cycles per instruction. But you need the total cycles per instruction presumably.

As for speedup, it's unclear what your baseline is.

MSalters
  • 173,980
  • 10
  • 155
  • 350