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 $t4, $s2, $t5 $t5, $s2, $t6 $t5, $t4, $t6 |
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.C.) (17.5 POINTS) stalling 2.D.) (17.5 POINTS) forwarding
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 Ss2, St2, $t3 St4, Ss2, $t5 $t5, Ss2, $t6 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.C.) (17.5 POINTS) stalling 2.D.) (17.5 POINTS) forwardingStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started