Question: 12. Consider the following code sequence. Load r1.(r0,#0) add r1 r1,r1 load r2.(r0,#4) mul rl,r1,r2 load r2, (r0,#8) mul r1,r1,r2 load r2.(r0,#12) mul r1,r1,r2 str

 12. Consider the following code sequence. Load r1.(r0,#0) add r1 r1,r1

12. Consider the following code sequence. Load r1.(r0,#0) add r1 r1,r1 load r2.(r0,#4) mul rl,r1,r2 load r2, (r0,#8) mul r1,r1,r2 load r2.(r0,#12) mul r1,r1,r2 str rl.(r0,#0) Assume the latencies for the instructions are load - 3, add - 1, mul - 2. Calculate the number of clock cycles required to perform the above code? (4) Reschedule the code and indicate how many clock cycles were reduced on rescheduling. (6)

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!