Question: 6. Assume that computer M1 has CPU clock rate 200MHz, and supports four classes of instructions: ALU, Iw, sw, branchjump lw has CPI5, sw has

6. Assume that computer M1 has CPU clock rate 200MHz, and supports four classes of instructions: ALU, Iw, sw, branchjump lw has CPI5, sw has CPl 4, ALU instruction has CPI4 and branchjump has CPI 3 The following program Pis used in testing the computer performance: Loop add $t0, szero, $zero subu St1#1 $56 Iw $t0, 0St1) addi St0, $t0, 1 sw Sto, 0st1) and $s3, Ss3, $$4 bne $t0, $55, Loop a. What is the average CPl for program P? b. Another computer M2 with clock rate of 1GHz has the same performance as computer M1 when it runs the program P What is the average CPl of computer M2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
