Question: 4. Consider the following assembly-language program: loop: Iw R1, 0(R2) addi R1, R1, 4 SW R2, 8(R1) addi R2, R2, 4 sub R4, R3,

4. Consider the following assembly-language program: loop: Iw R1, 0(R2) addi R1, R1, 4 SW R2, 8(R1) addi R2, R2, 4 sub R4, R3, R2 bnez R4, loop Show the timing of this instruction sequence for a 5 stage pipeline along with the number of cycles required to execute the start of one iteration of the loop with no forwarding. Use an S where a stall is required to resolve a hazard. Number of cycles required= cyc 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Iw addi F D E M W SW addi sub bnez outside Iw
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
