sp95 midterm1

Computer Organization and Design: The Hardware/Software Interface

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

View Full Document Right Arrow Icon
University of California at Berkeley College of Engineering Computer Science Division - EECS CS 152 D. Patterson S. Kong Spring 1995 Computer Architecture and Engineering Midterm I Your Name: SID Number: Discussion Section: You may bring two pages of notes. You have 180 minutes. Each question carries 20 points. Show your work. Write neatly and be well organized. Good Luck! Problem Score 1 2 3 4 5 Total
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. You work at Hariprasad Industries. You are designing a computer and testing it on your favorite program: a video game called Mr. Oza's Nut Factory. The clock rate for your machine is 100MHz. Your machine has a floating-point unit. The video game has 500 million total instructions. Here are the measurements for your video game: Instruction CPI Frequency A 2 35% B 5 30% C 4 20% D 4 15% a) What is the average CPI for your machine when running this program? [4 points] b) A friend of yours gives you a new compiler to try out. The instruction count improvements resulting from this compiler are as follows. [4 points] Instruction Class Percentage of Instructions Executed vs. Original Machine A 80% B 100% C 95% D 80% What is the average CPI for your machine when running your program as compiled with this new compiler? Extra Credit: What is your opinion of this friend?
Background image of page 2
3 c) What is the execution time of the program without the new compiler? [4 points] d) What is the execution time of the program with the new compiler? [4 points] Extra Credit: What is your opinion of this friend now? The compiler was recalled because the compiler writer used useless toy benchmarks to exaggerate the improvement resulting from his compiler. Therefore, use the measurements WITHOUT the new compiler from now on. e) Your boss gets mad at you because you used a metric other than execution time to measure performance (How shameful!). Your boss takes your floating-point unit away from you. As a result, floating-point instructions take four times longer now. Assume that the class B instructions are the floating-point instructions. How much faster is the original machine (with the floating point unit and uses the old compiler) than this crippled machine (without the floating point unit and uses the old compiler)? [4 points]
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 2. The cost/performance of two microprocessors is to be examined, each running the same instruction set. The first option is a Galium Arsenide (GaAs) microprocessor. A GaAs wafer that is 10cm (
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 15

sp95 midterm1 - University of California at Berkeley...

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

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