# MIPS pipelining stage used for commands

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 ?

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