EE357-HW5-Nazarian-Fall-09

EE357-HW5-Nazarian-Fall-09 - EE 357 Homework 5 Fall 2009...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 EE 357 Homework 5 Fall 2009 Nazarian Name: ___________________________________________ Assigned Tuesday, Nov. 17 Due: Monday, Nov. 30 (EEB340 at 5pm) Score: ________ 1) Performance and Amdahl’s Law a) th Ed. page 59: Consider three different processors P1, P2, and P3 executing the same instruction set with the clock rates and CPIs given in the following table: Processor Clock Rate CPI Processor P1 2 GHz 1.5 P1 P2 1.5GHz 1.0 P2 P3 3 GHz 2.5 P3 1.3.1 Which processor has the highest performance? 1.3.2 If the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions. 1.3.3 We are trying to reduce the time by 30% but this leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction? b) th Ed. page 60-61. For problems 1.5.2-1.5.3 when it says that class A (or E) occurs twice as often as each of the others, let us assume that means that for every 6 instructions, on average two would be class A (or E) and one instruction from every other class: Consider two different implementations, P1 and P2, of the same instruction set. There are 5 classes of instructions, A, B, C, D, and E, in the instruction set. The clock rate and CPI of each class is given below. Clock Rate CPI Class A CPI Class B CPI Class C CPI Class D CPI Class E a. P1 1.0GHz 1 2 3 4 3 P2 1.5GHz 2 2 2 4 4 b. P1 1.GHz 1 1 2 3 2 P2 1.5GHz 1 2 3 4 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 1.5.1 Assume that peak performance is defined as the fastest rate that a computer can execute any instruction sequence. What are the peak performances of P1 and P2 expressed in instructions per second? 1.5.2 If the number of instructions executed in a certain program is divided equally among the classes of instructions except for class A, which occurs twice as often as each of the others. Which computer is faster? How much faster is it? 1.5.3 If the number of instructions executed in a certain program is divided equally among the classes of instructions except for class E, which occurs twice as often as each of the others? Which computer is faster? How much faster is it? The table below shows instruction-type breakdown for different programs. Using this data you will be exploring the performance tradeoffs with different changes made to a MIPS processor. # Instructions Compute Load Store Branch a. Program 1 1000 400 100 50 b. Program 2 1500 300 100 100 1.5.4 Assuming that computes take 1 cycle, loads and store instructions take 10 cycles, and branches take 3 cycles, find the execution time of each program on a 3GHz MIPs processor.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/14/2010 for the course EE 357 at USC.

Page1 / 8

EE357-HW5-Nazarian-Fall-09 - EE 357 Homework 5 Fall 2009...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online