Computer Organization and Design: The Hardware/Software Interface

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

View Full Document Right Arrow Icon
1 University of California, Berkeley College of Engineering Computer Science Division EECS Spring 2004 John Kubiatowicz Homework Quiz (HW #5) April 26, 2004 CS152 Computer Architecture and Engineering This quiz combines two of the problems from homework #5. Good Luck! Your Name: SID Number: Discussion Section: Total:
Image of page 1

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

View Full Document Right Arrow Icon
2 [ This page intentionally left blank ]
Image of page 2
3 Cache organization Your company has an application that must be run as fast as possible. The hardware division of your company has come up with three separate first-level cache configurations: Machine I: Direct-mapped with one-word blocks Machine II: Direct-mapped with four-word blocks Machine III: Two-way set associative with four-word blocks For each of these machines, the cache fill penalty is 6 cycles + 1 cycle for each word. You did some experiments and measured the following instruction mix for the application:
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Branch: 20%, Load: 13%, Store: 12%, Float Insts: 20%, Integer: 35% Further, through a hardware cache monitor, you measured the following miss rates: • Machine I: Instruction miss rate: 4%; Data miss rate: 20% • Machine II: Instruction miss rate: 2%; Data miss rate: 16% • Machine III: Instruction miss rate: 1.5%; Data miss rate: 14% Finally, the total CPI measured with Machine I is 3.0. 1. Which machine spends the most time waiting for memory? Justify your answer (no guesses!): 2. What is the CPI for Machine III? 3. Suppose that these machines run at 100Mhz (10ns cycle time). What is the average memory access time (AMAT) for each of these machines (in nanoseconds) assuming that machines I and II have a 1 cycle hit time and machine III has a 2 cycle hit time?...
View Full 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