FinalExam2010 - NAME STUDENTNUMBER COMPUTER ENGINEERING...

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

NAME ____________________________ STUDENT NUMBER ________________ COMPUTER ENGINEERING 3DR4 DAY CLASS Dr. S. Shirani DURATION OF EXAMINATION: 3 Hours McMaster University Final Examination April 2010 This examination paper includes 5 pages, 6 questions and “MIPS Reference Data”. You are responsible for ensuring that your copy of the paper is complete. Bring any discrepancy to the attention of your invigilator. SPECIAL INSTRUCTIONS: Write your name and student number at the top of every page. Answer all questions in the ANSWER BOOKLET ONLY . This is a closed book examination. No reference materials of any kind are permitted. Any calculators may be used. Continued on Page 2
Image of page 1

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

Page 2 Question 1 (6 points) Consider executing the following code on the MIPS pipeline datapath: lw $4, 100 ($2) sub $6,$4,$3 add $2,$3, $5 add $5,$3,$7 add $7,$6,$1 1. At the end of the fifth cycle of execution, which registers are being read and which registers will be written? 2. Explain what the forwarding unit is doing during fifth cycle of execution. If any comparisons are being made, mention them. 3. Explain what the hazard detection unit is doing during fifth cycle of execution. If any comparisons are being made, mention them. Continued on Page 3
Image of page 2
Page 3 Question 2 (6 points) We wish to add a variant of the lw (load word) instruction called lwn (load word new) which sums two
Image of page 3

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

Image of page 4
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '12
  • Central processing unit, CPU cache, Cache algorithms, Eugène Charles Catalan, McMaster University Final Examination, Instruction miss rate

{[ 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