Question: 2.) (30 POINTS) Assume that the following code segment is executed on a pipelined architecture that will cause data hazard(s): add sub add and $s2,

2.) (30 POINTS) Assume that the following code segment is executed on a pipelined architecture that will cause data hazard(s): add sub add and $s2, $t2, $t3 St4, Ss2, St5 St5, Ss2, St6 St5, St4, St6 Schematically provide a solution for the first occurrence of the data hazard by using each of the following data hazard remedies. Please note that for each item below you apply the solution independently, i.e. each solution is isolated from other solutions. 2.A.) (17.5 POINTS) rearranging the code statements, i.e. reorganizing the order of instructions in the code segment 2.B.) (17.5 POINTS) nop 2.?.) (17.5 POINTS) stalling 2.D.) (17.5 POINTS) forwarding
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
