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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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