Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1. Rewrite/reorder the original code to minimize the number of stalls to your best ability. This will in turn reduce the number of cycles needed

image text in transcribed

image text in transcribed

Q1. Rewrite/reorder the original code to minimize the number of stalls to your best ability. This will in turn reduce the number of cycles needed to complete the program and should lower the CPI. Record these 4 values (Cycles, Instructions, CPI, and RAW stalls) exactly from the "Statistics" window and include them in a comment in your code. Save the files as "SID_Assign4_1.s". Some things to note: The calculated CPI is not 100% correct as it doesn't compensate for the pipeline startup and flush times. To calculate a more accurate CPI, subtract 5 from Cycles first, then divide by Instructions. The number of branch stalls can be calculated as: Cycles Instructions -Raw Stalls - 5 Go to the menu "Configure" -> "Settings" and the "Main Settings" tab and check "Enable forwarding"; Press OK. Re-load the original code and run it. The number of stalls should be far less than before turning on forwarding Q1. Rewrite/reorder the original code to minimize the number of stalls to your best ability. This will in turn reduce the number of cycles needed to complete the program and should lower the CPI. Record these 4 values (Cycles, Instructions, CPI, and RAW stalls) exactly from the "Statistics" window and include them in a comment in your code. Save the files as "SID_Assign4_1.s". Some things to note: The calculated CPI is not 100% correct as it doesn't compensate for the pipeline startup and flush times. To calculate a more accurate CPI, subtract 5 from Cycles first, then divide by Instructions. The number of branch stalls can be calculated as: Cycles Instructions -Raw Stalls - 5 Go to the menu "Configure" -> "Settings" and the "Main Settings" tab and check "Enable forwarding"; Press OK. Re-load the original code and run it. The number of stalls should be far less than before turning on forwarding

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_2

Step: 3

blur-text-image_3

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

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions