Question: Consider the following MIPS code segment: sw $t 2 , 2 0 ( $t 0 ) add $t 3 , $t 1 , $t 4

Consider the following MIPS code segment:
sw $t2,20($t0)
add $t3, $t1, $t4
lw $t1,4($t2)
and $t2, $t1, $t3
What is ALU doing during cycle 4 if forwarding and hazard detection are supported?
Can we rearrange the order of instructions such that the number of cycles is minimized?

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 Databases Questions!