The formula to calculate Clock Cycles Per Instruction (CPI) is:
CPI=CI
Where:
Let's consider an example:
Using the formula to calculate the Clock Cycles Per Instruction:
CPI=1000000250000=4cycles/instruction
This demonstrates that with 1,000,000 cycles and 250,000 instructions, the CPI would be 4 cycles per instruction.