In: Electrical Engineering
Assume that for a given program 70% of the executed instruction
are arithmetic, 10% are load/store, and 20% are branch.
i. Given the instruction mix and the assumption that an arithmetic
instruction requires 2 cycles, a load/store instruction takes 6
cycles, and a branch instruction takes 3 cycles, ?nd the average
CPI.
ii. For a 25% improvement in performance, how many cycles, on
average, may an arithmetic instruction take if load/store and
branch instructions are not improved at all.