Cycles per instruction: Difference between revisions

Content deleted Content added
m the MIPS explaining part was not clear enough, it is not explicitly claim that 100000 is not the count of instructions , but the M in MIPS(1 million). I made it clear in formula.
Line 77:
|}
 
Determine the effective CPI, [[Instructions per second#Million instructions per second|MIPS]] (Millions of instructions per second)rate, and execution time for this program.
 
: Total instruction count = 100000
 
<math>
\text{CPI} = \frac{45000 \times 1 + 32000 \times 2 + 15000 \times 2 + 8000 \times 2}{100000} = \frac{155000}{100000} = 1.55
</math>
 
<math>400 Mhz = 400 ,000 ,000 Hz</math>
 
since: <math>MIPS \propto 1/CPI</math> and <math>MIPS \propto clock Freqeuncy</math>
 
<math>
\text{Effective processor performance} = \text{MIPS} = \frac{\text{clock frequency}}{\text{CPI}} \times 1000000{\frac{1}{\text{1 Million}}} = \frac{400 \times 1000000}{1.55 \times 1000000} = 258 \, \text{MIPS}
</math>