ECE 313 Computer Organization Name FINAL EXAM December 14 ...
ECE 313 Computer Organization Name FINAL EXAM December 14 ...
ECE 313 Computer Organization Name FINAL EXAM December 14 ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>ECE</strong> <strong>313</strong> <strong>Computer</strong> <strong>Organization</strong><strong>Name</strong><strong>FINAL</strong> <strong>EXAM</strong> <strong>December</strong> <strong>14</strong>, 20045. Data and Control Hazards 20 PointsAssume that the following sequence of MIPS instructions (including the new l_incinstruction) is executing on the modified pipeline design from Problem 3, but that thedesign is altered to perform forwarding, stalls, and flushing as required to deal with data andcontrol hazards.L: l_inc $2, 200($1)bne $1, $5, Ladd $7, $1, $4sw $8, 0($7)sub $7, $8, $7(a) Circle any data dependencies which exist between these instructions.(b) Mark any of the above instructions that will be stalled due to data hazards.(c) Assuming that the branch is taken, fill in the multicycle diagram shown below to showthe execution of the instruction sequence during one iteration, including stalls,forwarding, and flushes (if any). Shade active stages.Page 6 of 8