Content deleted Content added
Tag: Reverted |
LucasBrown (talk | contribs) Changing short description from "The average number of clock cycles per instruction" to "Aspect of CPU performance" |
||
(10 intermediate revisions by 9 users not shown) | |||
Line 1:
{{Short description|Aspect of CPU performance}}
{{Refimprove|date=December 2009}}
In [[computer architecture]], '''cycles per instruction''' (aka '''clock cycles per instruction''', '''clocks per instruction''', or '''CPI''') is one aspect of a [[central processing unit|processor
== Definition ==
The average of Cycles Per Instruction in a given process ({{math|CPI}}) is defined by the following [[Weighted arithmetic mean|weighted average]]:
: <math>
\mathrm{CPI} := \frac{\Sigma_i(\mathrm{IC}_i)(\mathrm{CC}_i)}{\mathrm{IC}} = \frac{\Sigma_i(\mathrm{IC}_i \cdot \mathrm{CC}_i)}{\Sigma_i(\mathrm{IC}_i)}
</math>
Where <math>
==Explanation==
Line 30 ⟶ 31:
For the multi-cycle [[MIPS architecture|MIPS]], there are five types of instructions:
* Load (
* Store (
* [[MIPS architecture#MIPS assembly language|R-type]] (
* [[MIPS architecture#MIPS assembly language|Branch]] (
* [[MIPS architecture#MIPS assembly language|Jump]] (
If a program has:
|