Name: Date:

HW11

You are the lead designer of a processor and wish to evaluate design options and pick the most efficient. For all problems show your work and include units in your calculations for full credit.

  1. (5 points) Base deisgn You first analyze the current design, Mbase, which has a clock rate of 2.5 GHz. Testing with a benchmark program yields the measurements below. What is the CPI of this machine?

    Instruction Class CPI Count
    A 2 40
    B 3 25
    C 3 25
    D 5 10
  2. (3 points) Another program is made up of 2000 instructions, what is the execution time of the program assuming the benchmark program above is representative of this program?

  3. (5 points) Optimize the hardware The hardware team can improve the processor to give it a clock rate of 3.0 GHz and some improvements to the CPI. Call this computer Mopt. A simulator estimates the results below. What is the CPI of this machine? Be sure to indicate units for your cycles and instructions counts while showing your work.

    Instruction Class CPI Count
    A 2 40
    B 2 25
    C 3 25
    D 5 10
  4. (3 points) If the same program from Q2 is run on this processor, what is the execution time?

  1. (5 points) Optimize the software An improved compiler would reduce the number of instructions in the programs run on this machine. The combination of an improved compiler and the base computer is Mcomp. The instruction improvements from this enhanced compiler have been estimated below. What is the CPI for Mcomp? Note the program is shorter now. Be sure to indicate units for your cycles and instructions counts while showing your work.

    Instruction Class CPI Count
    A 2 30
    B 3 20
    C 3 20
    D 5 10
  2. (3 points) If the same program from Q2 is compiled with the above enhancements, it is now smaller. What is the execution time of this new, smaller program on the base computer?

  3. (2 points) Which processor enhancement is faster?