Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A LEGv8 assembly code is shown below. The assembly code is executed using a five-stage LEGv8 processor. Answer the following questions Loop: LSL X9, X20,

image text in transcribed

A LEGv8 assembly code is shown below. The assembly code is executed using a five-stage LEGv8 processor. Answer the following questions Loop: LSL X9, X20, #3 ADD X9, X9, X22 LDUR X9, [X9, #0] ADD X9, X9, X21 LSL X10, X19, #3 ADD X10, X10, X22 STUR X9, [X10, #0] LSL X9, X21, #3 ADD X9, X9, X22 LDUR X9, [X9, #0] SUB X19, X20, X9 CBNZ X19, Loop ADDI X19, XZR, #32 a. Identify all the hazards and number of stalls in the assembly code. Assume there is no forwarding, no branch prediction, and no duplicate copies of instruction memory or data memory b. Reorder the above code to reduce the stalls without changing the functionality. Assume there is no forwarding, no branch prediction, and no duplicate copies of instruction memory or data memory. c. Reorder the above code to reduce the stalls without changing the functionality. Assume there is forwarding, no branch prediction, and no duplicate copies of instruction memory or data memory. d. Draw the multi-cycle pipeline diagram (one loop) for the optimized assembly code from section c

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 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago