Question: SOLVE PART (b) only please!! Problem #5 (Loop Unrolling) (a) What is loop unrolling and why it is used? What are the pros and cons

SOLVE PART (b) only please!! SOLVE PART (b) only please!! Problem #5 (Loop Unrolling) (a) What is

Problem #5 (Loop Unrolling) (a) What is loop unrolling and why it is used? What are the pros and cons of loop unrolling? (b) Unroll the loop two times and then draw an instruction scheduling diagram for the following code executed on a 2-issue processor (where one of the instructions can be integer ALU or branch and the other can be load or store). Reorder the instructions to avoid as many pipeline stalls as possible to schedule the instructions in minimum number of clock cycles. Compute the IPC for the code too. Loop: lw $2,0($4) addi $2, $2, #10 lw $3, 64(84) addi $3, S3, #20 add $5, S2, S3 $5, 128($4) addi $4, S4, #4 bne $4, S7, Loop sw

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!