Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer Architecture How much time the following code sequence takes when executed without forwarding and with forwarding? Can you reorder the code to avoid all

Computer Architecture image text in transcribed

How much time the following code sequence takes when executed without forwarding and with forwarding? Can you reorder the code to avoid all stalls? if yes, please reorder the code and execute the code with forwarding while providing the time it takes. Assume that each clock cycle takes 100 femto sec. lhu ri, 0(18) srl r8, r1, 2 sh ri, 0(r8) and r10, rii, r11 slt r8, rl, r8 Execution without forwarding takes cycles. Execution without forwarding takes fs Execution with forwarding takes cycles. Execution with forwarding takes fs. Reordered Code: - lhu ri, 0 (r8) srl r8, r1, 2 sh ri, 0 (r8) and r10, r11, r11 slt r8, ri, r8 Execution with code scheduling (reordering) and with forwarding takes cycles. Execution with code scheduling (reordering) and with forwarding takes fs

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: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions