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:
I0: sub $t4, $t1, $s2
I1: add $s3, $s2, $t4
I2: add $t1, $t0, $s0
I3: add $t1, $t0, $s0
I4: sub $t4, $t1, $s2
I5: lw $t5,0($t1)
I6: slt $t0, $s0, $s1
I7: sw $t0,0($s0)
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!