Docsity

ECEC 355: Homework 2 - Processor Performance Analysis, Assignments of Electrical and Electronics Engineering

Partial preview of the text

Download ECEC 355: Homework 2 - Processor Performance Analysis and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECEC 355: Homework 2 (Covers Chapter 2 and 4)

April 18, 2008

The homework is due April 29, 2008.

1. (10 points) Textbook problem 2.

2. (20 points) Textbook problems 2.30 and 2.

3. (5 points) Textbook problem 2.

4. (15 points) Textbook problem 4.8, 4.10, and 4.

Problems 5 and 6 are on the next page.

  1. ( 15 points ) You are the lead designer of a new processor. The processor design and compiler are complete, and now you must decide whether to produce the current design as it stands or spend additional time improving it. You discuss this problem with your hardware engineering team and arrive at the following options: Leave the design as it stands. Call this base computer M base. It has a clock rate of 500 MHz, and the following measurements have been made using a simulator:

Optimize the hardware. The hardware team claims that it can improve the processor design to give it a clock rate of 600 MHz. Call this computer M opt. The following measurements were made using a simulator for M opt:

  1. What is the CPI for each computer? (5 points)
  2. What are the native MIPS ratings for M base and M opt? (5 points)
  3. How much faster is M opt than M base? (5 points)
  4. ( 10 points ) Amdahl’s law can also be written in terms of overall speedup as a function of two variables: the amount of improvement and the fraction of the original execution time that the enhanced hardware feature is being used. Derive this form of the equation from the following two equations.

Instruction class CPI Frequency A 2 40% B 3 30% C 3 20% D 5 10%

Instruction class CPI Frequency A 2 40% B 2 30% C 3 20% D 4 10%

speedup Execution time before improvement Execution time after improvement

=--------------------------------------------------------------------------------------

Execution time after improvement Execution time affected by improvement Amount of improvement

=-------------------------------------------------------------------------------------------------- +Execution time unaffected