Question: Consider two different implementations, M1 and M2, of the same instruction set (Number of Instructions = 10^6 i.e 1,000,000). There are three classes of instructions

 Consider two different implementations, M1 and M2, of the same instruction

Consider two different implementations, M1 and M2, of the same instruction set (Number of Instructions = 10^6 i.e 1,000,000). There are three classes of instructions (A, B, and C) in the instruction set. M1 has a clock rate of 2GHz and M2 has a clock rate of 3 GHz. The average number of cycles for each instruction class and their frequencies (for a typical program) are as follows: Instruction Class M1 CPI M2 CPI Frequency A N N 50% B 1 3 30% 4 4 20% a) Calculate the average CPI for each machine, M1 and M2 b) Calculate the execution time for each machine, M1 and M2 and state which one is faster. c) By how much must we improve the CPI of Class A instructions if we want the program to run 20% times faster on Machine M1? Give the new CP value of class A instructions required to make this happen

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 Databases Questions!