Homework 1, Some Computation.
Goals
When you finish this homework, you should have:- Performed timing computations
Formal Description
- (H&P 1.5) Consider three different processors P1, P2 and P3 executing the same instruction set. P1 has a 3GHz clock and a CPI of 1.5, P2 has a 2.5 GHz clock rate and a CPI of 1.0 and P3 has a 4.0GHz clock rate and a CPI of 2.2
- Which processor has the highest performance expressed in instructions per second?
- If the processors each execute a program in 10 seconds, find the number of cycles and instructions executed by each.
- (H&P 1.6) Consider two different implementations of the same instruction set architecture. The instructions can be divided into four classes according to their CPI (A,B,C,D). P1 with a clock rate of 2.5GHz and CPIs of 1,2,3 and 3, and P2 with a clock rate of 3GHz and CPIs f 2,2,2,2
Given a program with a dynamic instruction count of 1.0 x 106 instructions divided into the classes as follows: 10% class A, 20% class B, 50% class C and 20% class D which is faster P1 or P2?
- What is the global CPI for each implementation?
- Find the clock cycles required in both cases.
- (H&P 1.12) Section 1.10 (of the book) cites as a pitfall the utilization of a subset of the performance equation as a performance metric. To illustrate this, consider the following processors. P1 has a clock rate of 4GHz, average CPI of 0.9 and requires the execution of 5.0× 109 instructions. P2 has a clock rate of 3GHz, and average CPI of 0.75 and requires the execution of 1.0x109 instructions.
- One usual fallacy is to consider the computer with the largest clock rate as having the highest performance. Check if this is true for P1 and P2.
- A second fallacy is to consider that the processor executing the largest number of instructions will need a larger CPU time. Considering that P1 is executing a sequence of 1.0× 109 instructions and that the CPI of P1 and P2 do not change, determine the number of instructions that P2 can execute in the same time that P1 needs to execute 1.0×109 instructions. Comment on your results.
- A common fallacy is to use MIPS (Millions of Instructions Per Second) to compare the performance of two processors and consider the processor with the highest MIPS rating as the largest performance. Check this for P1 and P2. Comment on your results.
Note
- Remember, if you use AI for this project, you must document your usage.
- Also, if you work as part of a group, you must provide the names of the members of your group.
- A well documented spreadsheet is preferred.
- Typed answer are preferred over hand written answers.