Two machines are under consideration M1 and M1 The table bel
Two machines are under consideration: M1 and M1. The table below lists the clock periods for each machine, as well as the instruction mix for a program that approximates the average use of students in the lab. Answer the following questions a-d. A) Calculate the average CPI for each machine. B) Calculate the execution times for each machine assuming the program executes 2,000,000,000 instructions C) A new machine, M3, is being considered to replace the lab machines. M3\'s design is based on M2. The only difference is that M3 will execute MULT instructions 5 times faster than M2. what is the speedup of M3 as compared to M2? D) Which machine should we adopt: M1, M2, or M3? (justify your answer).
Solution
Cpi average for m1=(25/100)*2+(25/100)*2+(15/100)*4+(15/100)*4+(10/100)*2+(10/100)*10
=3.4
Cpi average for m2= (25/100)*3+(25/100)*3+(15/100)*5+(15/100)*5+(10/100)*3+(10/100)*5
=3.8
Execution time for m1= 2*10^9*3.4*1*10^-9
=6.8sec
Execution time for m2=2*10^9*3.8*1*10^-9
=7.6sec
