Question: Given 3 MIPS assembly programs and they are executed in a 5 - stage pipeline processor. Answer the following questions: ( i ) add $s

Given 3 MIPS assembly programs and they are executed in a 5-stage pipeline processor.
Answer the following questions:
(i)
add $s1, $s1,$v0
add $s1, $s1, $s3
add $s1, $s1, $t1
(ii)
lw $t1,0($s3)
add $t2, $t1, $t3
sw $s2,4($s3)
sub $t3, $t2, $t1
(iii)
add $t3, $t4, $t6
lw $t2,40($t3)
sub $t5, $t3, $t2
lw $t7,120($t5)
add $t8, $t7, $t2
(a) Identify the type of hazards for each program.

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!