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 $s$s
lw $s$s
add $s $s $s
addi $s $s
bne $s $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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
