sp95 midterm1

Computer Organization and Design: The Hardware/Software Interface

Info icon This 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
Image of page 1

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

View Full Document Right 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?
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]
Image of page 3

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

View Full Document Right Arrow Icon
4 2. The cost/performance of two microprocessors is to be examined, each running the same instruction set.
Image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern