Question: Consider the following MIPS code: 1 . lw $s 2 , 0 ( $s 1 ) 2 . lw $s 1 , 4 0 (

Consider the following MIPS code:
1. lw $s2,0($s1)
2. lw $s1,40($s6)
3. sub $s6, $s1, $s2
4. add $s6, $s2, $s2
5. or $s3, $s6, $zero
6. sw $s6,50($s1)
a. Implement this code without forwarding and mention the clock cycles required b. Implement this code with forwarding and mention the clock cycles required

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!