Question: 6. Assume that computer M1 has CPU clock rate 200MHz, and supports four classes of instructions: ALU, Iw, sw, branch/jump. Iw has CPI =

6. Assume that computer M1 has CPU clock rate 200MHz, and supports

 

6. Assume that computer M1 has CPU clock rate 200MHz, and supports four classes of instructions: ALU, Iw, sw, branch/jump. Iw has CPI = 5, sw has CPI =4, ALU instruction has CPI = 4, and branch/jump has CPI = 3. The following program P is used in testing the computer performance: Loop: add $10, $zero, $zero or $t0, $t1, $1 subu $t1,$t1,$56 Iw $t0, 0($t1) add $t0, $10, 1 sw $t0, 0($11) and $53, $s3, $4 bne $t0, $55, Loop a. What is the average CPI 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 CPI of computer M2?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!