finalexamsummer05 - Name: Grade: Computer Organization...

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

View Full Document Right Arrow Icon
Computer Organization CDA-3103 Final Exam Summer 2005 Be lucid and neat. Justify all your answers. 75 mins. Closed book, Closed notes, No calculator. Name: Grade:
Background image of page 1

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

View Full DocumentRight Arrow Icon
Q1 (20 pts.) The instruction mix for a machine M1 is shown in the following table: Instruction Class Frequency Cycles load store ALU op branch 30% 20% 40% 10% 3 2 1 1 As a designer you consider an alternative implementation M2, by adding a new instruction that could have up to three memory operands. The CPI for this new instruction is 3, and its implementation would increase the clock cycle period by a factor of 1.2. However, the new instruction would effectively replace one third of the load instructions and half of the store instructions. a. (5 pts) What is the average CPI for M1? b. (5 pts) What is the average CPI for M2 if its frequency is 10%? c. (10 pts) Which machine is faster and by how much? Justify all your answers.
Background image of page 2
Q2 (20 pts) Write a sequence of MIPS instructions to implement the following segment of C code: count=0;
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/22/2010 for the course CDA 3101 taught by Professor Staff during the Fall '07 term at University of Central Florida.

Page1 / 7

finalexamsummer05 - Name: Grade: Computer Organization...

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

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