Transform the loop by unrolling the loop and reschedule

Assignment Help Computer Engineering
Reference no: EM132103961

Problem

Consider the following code and answer the following questions. Note that F2 register holds a scalar constant that cannot be changed for the computation (see MUL.D instruction)

     DADDI      R3,R0,8

     DADDI      R1,R0,1024

     DADDI      R2,R0,1024

Loop: L.D        F0,0(R1)

     MUL.D      F0,F0,F2

     L.D        F4,0(R2)

     ADD.D      F0,F0,F4

     S.D        F0,0(R2)

     DSUB       R1,R1,R3

     DSUB       R2,R2,R3

     BNEZ       R1,Loop

HALT

(a) Re-arrange the loop without unrolling. You can move individual instructions, however the output of this dummy loop should be exactly the same i.e. adjust the offset for memory instructions (load/store). Show the rearranged loop. Can you reduce the stalls for this code?

(b) Now, transform the loop by unrolling the loop and reschedule the instructions to minimize stalls.

Reference no: EM132103961

Questions Cloud

Write the linked list skeleton program with given data : Discard an item (Remove an element from the list). Check whether an item was bought (Does the list contain the item)
What is the motorcycle average speed : Starting from rest a motorcycle increases its speed to 27.2 m/s at a constant rate for 4.0 seconds?
How many blocks of main memory are there : Suppose a computer using direct mapped cache has 232 bytes of main memory and a cache of 1024 blocks, where each block contains 32 bytes.
What velocity would you need to shoot the ball into bucket : What velocity would you need to shoot the ball into the bucket? Note that the launch angle (?) was 27.5°
Transform the loop by unrolling the loop and reschedule : Consider the following code and answer the following questions. Note that F2 register holds a scalar constant that cannot be changed for the computation.
How far from the starting point is the first check point : In its motion, it takes 1.6 secs to pass between two points that are 24.0 m apart in its motion.
Annual consumption of energy in the united states : The book says that the annual consumption of energy in the United States is about 105 x 1018 J/year.
How long will it take to find the block with the depratti : You want to do an equality search looking for all people with the last_name = ‘DePratti'. How long will it take to find the block with the DePratti row?
Calculate the work done in lifting : Calculate the work done in lifting a 4-lb book to a height of 8ft.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write down a concise summary

Write down a concise summary of what you have learned about physical tamper-resistant devices.

  Determine the hash addresses

Determine the hash addresses and find how many collisions occur when these keys are reduced by applying the operation % hash_size.

  What is the difference between offensive and defensive

What is the difference between offensive and defensive counterintelligence, and the most effective measures used to practice defensive

  Why does the create components method of filled frame call

Why does the create Components method of Filled Frame call add(panel), whereas the main method of Filled Frame Viewer calls frame.add(panel)?

  Prepare a program to show a small menu

4483 and 8995 Software Technology Assignment. You program needs to do the following - Show a small menu

  What are the benefits of mapreduce

What is the difference between parallel processing and distributed processing? What are the benefits of MapReduce?

  Draw logic diagram of a four-bit binary ripple down-counter

Draw the logic diagram of a 4-bit binary ripple down-counter using the following: (a) Flip-flops that trigger on the positive-edge transition of the clock. (b) Flip-flops that trigger on the negative-edge transition of the clock.

  Discuss why a company would want to outsource

Discuss why a company would want to outsource and how they should outsource ERP implementation.

  Write a program that enables a user to enter desired sum

Write a program that enables a user to enter in a desired sum for two dice, and then simulates the rolling of two dice until the sum is rolled.

  How would you convince users that letting the computer os

How would you convince users that letting the computer operating system or browser application remember their passwords is against good security practices?

  What is the difference between a population and a sample

What is the difference between a population and a sample? How large do you think your population and sample will need to be for your dissertation research?

  Determine how long it will take for the tank to empty

A 1.5-m-diameter, 4-m-long cylindrical propane tank is initially filled with liquid propane, whose density is 581 kg/m3.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd