Assume the following instruction mix for a MIPS like RISC Program:
– 15% of instructions are store
– 25% of instructions are load
– 15% of instructions are branches
– 35% of instructions are integer arithmetic /logical
– %5 of instructions are floating points
– The rest of instructions (shift, move, etc.) are like arithmetic/logical instructions.
Further assume that:
– Load and store instructions take 4 cycles each,
branches take 3 cycles,
arithmetic/logical instruction (and their likes) each takes one cycle, and floating point instructions take 12 cycles.
Compute the overall CPI of this RISC Program.