mt1_sp09_3pm_commented_mt2

mt1_sp09_3pm_commented_mt2 - CSE 420/598 SPRING 2009 5....

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

View Full Document Right Arrow Icon
CSE 420/598 SPRING 2009 MIDTERM 1 3PM CLASS NAME Put Name on Every Page 5. (25) Control Hazards Relevant question The figure below is from your text on scheduling the branch-delay slot. The top picture in each pair shows the code before scheduling, and the bottom picture shows the scheduled code. For the ‘from before’ and ‘from target’ cases state (a) what the requirement is on instructions that can be placed in the branch-delay slot and explain how this requirement is met in the figure and (b) under what condition the given branch delay scheme improves performance. For the ‘from target’ case assume that R4 is a temporary register that is unused when the branch goes in the unexpected direction. In(a) the delay slot is scheduled with an independent instruction from before the branch. This is the best choice. Strategies (b) and (c) are used when (a) is not possible. In the code sequences for (b) and (c), the use of R1 in the branch condition prevents the DADD instruction (whose
Background image of page 1

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

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

This note was uploaded on 08/30/2009 for the course CSE 420 taught by Professor Skousen,a during the Spring '08 term at ASU.

Page1 / 4

mt1_sp09_3pm_commented_mt2 - CSE 420/598 SPRING 2009 5....

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

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