Cycles Per Instruction (CPI) Formula
Equation for calculate cycles per instruction (cpi) is,
CPI = ((4xRI) + (5xLI) + (4xSI) + (3xBI) + (3xJI)) / 100
Where,RI is R-type instructions
LI is load instructions
SI is store instructions
BI is branch instructions
JI is jump instructions