Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

use which function to find the answer Step by step We are comparing the performa

ID: 3869420 • Letter: U

Question

use which function to find the answer

Step by step

We are comparing the performance of two different microprocessors, M1 and M2. Assume a program P will be compiled into M2 instructions counting 20% more than M1 instructions. M1 has a 2 GHz clock rate while M2 has a 3 GHz clock rate. Instructions on these two machines can be classified into 3 classes as shown in the following table. Which machine has better MIPS (show MIPS for both machine)? Which machine has better performance (calculate better by how much percent)? Justify your answers.

Explanation / Answer

a) To calculate better performance of the machines find the average CPI of both the machines ,

Average CPI of M1 :

Clock per instruction = (25/100)*1 + (35/100)*4 + (40/100)*5

= 0.25 + 1.4 + 2

= 3.65

Average CPI of M2 :

Clock per instruction = (25/100)*2 + (35/100)*3 + (40/100)*5

= 0.5 + 1.05 + 2

= 3.55

By calculating the average CPI it is concluded that the performance of machine M1 is better because it has better CPI than M2 .

b) The MIPS of both the machines is calculated as ,

For machine M1 ,

Average MIPS rating = clock rate / (CPI*106)

= 2*109 / (3.65 *106)

= 2*103 / 3.65

= 547.94

For machine M2 ,

Average MIPS rating = clock rate / (CPI*106)

= 3*109 / (3.55 *106)

= 3*103 / 3.55

= 845.070

By calculating average MIPS , the better MIPS rating is present for the machine M2 that is 845.070