0
$\begingroup$

Does higher cpi give better performance?

Lets say there is a code and we can run it by 3 methods.

1 cpi for single cycle

99 cpi for multi cycle

70 cpi for pipeline

Multi cycle has the highest cpi for this code. So is multi cycle method the best for this code?

$\endgroup$
3
  • $\begingroup$ Surely lower CPI is better, all other things being equal? But of course it depends. Lower CPI depends on the CPU's ability to schedule more instructions, and higher CPI occasionally means faster clock. $\endgroup$
    – Pseudonym
    Jun 28, 2021 at 8:53
  • $\begingroup$ If All the other things are equal, does lower cpi give the better performance? $\endgroup$ Jun 28, 2021 at 9:49
  • $\begingroup$ Fewer cycles per instruction is better. $\endgroup$
    – Pseudonym
    Jun 28, 2021 at 23:46

1 Answer 1

1
$\begingroup$

CPI = cycled per instruction. Higher CPI = more cycles = more time to get the work done. So it’s worse.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.