lw  $4, 40($4)
sw  $4, 50($4)
add $4, $4, $4 

Suppose the above code was to be executed using 5 stage pipelining. I want to determine the data hazards but I am confused about which pipelining-stages are used for each command. For example, doesn't 'sw' use WB ?

  • $\begingroup$ Can you refresh everyone's memory and present a definition of data hazard to use? $\endgroup$ – greybeard May 15 at 13:54

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.