Question: Consider 2 different processors P1, P2 executing the same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.25. P2 has
Consider 2 different processors P1, P2 executing the same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.25. P2 has a 2.5 GHz clock rate and a CPI of 1.0.
a. (4 pts) Which processor has the highest performance expressed in instructions per second? Show the equations you used.
b. (4 pts) If the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions for both processors.
c. (4 pts) We have total elapsed cycles for P1 and P2 and we know how many cycles per instruction are required. How many total instructions does each processor execute?
d. (2 pts) We are trying to reduce the execution time by 30% but this leads to an increase of 20% in the CPI. What is the new execution time for both processors? What is the new CPI for each processor?
e. (4 pts) If we need the program to now execute with the 30% less time allowed, calculate what clock rate is required given the cycles per instruction and total instructions calculated above for each of P1 and P2. In your answer, use Hertz in place of cycles per second as the unit and convert to the appropriate metric unit prefix. You can consult a table of them at https://en.wikipedia.org/wiki/Metric_prefix.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
