Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

Have roles been defined and assigned?

Answered: 1 week ago