0
$\begingroup$

This is my question, I am so confused with my answer, looking for help! enter image description here

This is my answer: enter image description here Explanation: At the third instruction, instruction is waiting before ID, thus, no stalling is needed. (it does not have any changes before decoding. At the forth instruction, which is the store word, the $2 is available at the 10th cycle until it is written back before instruction decoded. At the last two instruction, there is no data hazard, so the instructions run without any hinder.

However, the instructor said that if an instruction is waiting before ID, the next instruction of IF phase should be start at 6th instead of 3rd (what I did)

Therefore, I am looking for help and want someone to discuss and check the idea with me. Thanks a lot for help!

For instance, which of the two IF is appropriate?

$\endgroup$
  • 1
    $\begingroup$ Please edit your question to credit the original source where you encountered this exercise. $\endgroup$ – D.W. Dec 11 '19 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.