Question: Consider the following assembly language code: I 0 : sub $t 4 , $t 1 , $s 2 I 1 : add $s 3 ,
Consider the following assembly language code:
I: sub $t $t $s
I: add $s $s $t
I: add $t $t $s
I: add $t $t $s
I: sub $t $t $s
I: lw $t$t
I: slt $t $s $s
I: sw $t$s
For each instruction, identify whether or not a hazard should be detected. If so identify the type of hazard as structure, data, or control. Assume the instructions are being processed on a MIPS pipeline datapath without forwarding.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
