Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9. Consider the following loop. LOOP: LDUR X10, [X1, #O] LDUR X11, [X1, #8] ADD X12, X10, X11 STUR X12, [X1, #-8] SUBI X1, X1,

image text in transcribed

9. Consider the following loop. LOOP: LDUR X10, [X1, #O] LDUR X11, [X1, #8] ADD X12, X10, X11 STUR X12, [X1, #-8] SUBI X1, X1, #16 CBNZ X12, LOOP (a) Show the pipeline timing diagram of the code execution without handling data and control hazards. 1 2 3 4 56 7 8 9 10 11 12 13 14 15 16 17 18 19 20 IF ID EX ME WB IF Cycle number: LOOP: LDUR X10, [X1, #0] LDUR X11, [X1, #8] ADD X12, X10, X11 STUR X12, [X1, #-8] SUBI X1, X1, #16 CBNZ X12, LOOP 2nd iteration: LDUR X10, [X1, #0] (b) Can you reorder the code to reduce the number of stalls? If yes, show the reordered code. (c) Show the pipeline timing diagram of the code execution with data forwarding and assume that the branch is handled by predicting it as taken. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 IF ID EX ME WB IF Cycle number: LOOP: LDUR X10, [X1, #0] LDUR X11, [X1, #8] ADD X12, X10, X11 STUR X12, [X1, #-8] SUBI X1, X1, #16 CBNZ X12, LOOP 2nd iteration: LDUR X10, [X1, #0] (d) What is the speedup for the execution of (c) over (a)

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 Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

Describe how to get and give criticism effectively.

Answered: 1 week ago

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago

Question

=+What is the most that you should pay to complete development?

Answered: 1 week ago