Question: Consider the following loop. LOOP: lw $s 0 , 0 ( $s 3 ) lw $s 1 , 8 ( $s 3 ) add $s

Consider the following loop.
LOOP: lw $s0,0($s3)
lw $s1,8($s3)
add $s2, $s0, $s1
addi $s3, $s3,-16
bne $s2, $zero, LOOP
Assume that perfect branch prediction is used (no stalls due to control hazards), that there are no delay slots, that the pipeline has full forwarding support, and that branches are resolved in the EX (as opposed to the ID) stage.
Show a pipeline execution diagram for the first two iterations of this loop.

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