Can you reduce the stalls for this code

Assignment Help Computer Engineering
Reference no: EM132103878

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: EM132103878

Questions Cloud

What is the distinction of the terms experimental set-up : What is the distinction of the terms "experimental set-up" and "control set-up" in biology?
Examine the raw hex bytes of the gsm messages : Within the CCCH are "paging request" messages. Explain the purpose of these messages, and provide a TMSI observed in a paging request.
Non-polar hydrophobic as a functional group : Can an Carboxyl ever be non-polar hydrophobic as a functional group, what does it exactly mean c double bonded to O and single bonded to OH group
Write code that produces ten dashes of length : Define a fuction dashes() that draws multiple dashes and takes 3 parameters. Write code that produces 10 dashes of length (and gap) 20.
Can you reduce the stalls for this code : Re-arrange the loop without unrolling. You can move individual instructions, however the output of this dummy loop should be exactly the same.
Why does dna synthesis use rna primase : Why does DNA synthesis use RNA primase instead of DNA primase?
Purchase computers for nick business : Jason, who is very knowledgeable regarding computers, agrees to purchase computers for Nick's business.
What circumstances would cause you to do those things : Why would you worry about doing any privilege escalation or leaving backdoors? What circumstances would cause you to do either of those things?
Compare the execution times of the two versions of program : Write a C program to compute binom(n,m) recursively. The values for n and m should be passed as command-line arguments with appropriate error checking.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Which type of security tool will use to deny access

You need to ensure that malicious packets are prevented from entering your private network

  Show output from the amazon web service

make Use of Visual Studio.NET 2005 to create an ASP.NET application that displays output from the Amazon web service. Add good documentation to the code. Furthermore, create a user-friendly interface.

  Modifying the label properties

Perform some of the changes, the WebTime example to consists of drop-down lists that enable the user to alter such Label properties as the BackColor, ForeColor and Font-Size.

  State the slope of the line of best fit

A Linear Model Example and Technology Tips are provided in separate documents - Describe your topic, provide your data, and cite your source.

  Large programming team and perhaps work on multiple projects

You wonder how large programming teams be sure that they use the same naming conventions and that their programs work together even though they are created independently. You research the Internet and any resources at your disposal for information..

  Write given pic instruction sequence

Write a PIC18F instruction sequence to implement the following C statement: e = a + b+c-d; assume data registers Ox3O, Ox4O, Ox5O, Ox6O, and Ox7O store a, b, c.

  Determine the costs of this massive expansion of

business intelligence knowledge management and expert systems are powerful tools that allow corporations to analyze

  Develop a simple battleship game

For your CSCI 2312 Project, you will develop a simple battleship game. Battleship is a guessing game for two players. It is played on four grids

  Produces the binary machine language equivalent

Produces the binary machine language equivalent, resulting in a one-to-one correspondence between the assembly language source program and the machine language object program.

  Define the cost of ownership of the mobile application

Define the cost of ownership of the mobile application, Define the benefits of ownership of the mobile application

  Define the concept of seven segment

It is desired to implement a PIC18F4321-based system as shown in Figure. The system will scan a hex keyboard with 16 keys, and drive three seven-segment display

  Identify a networked technology you use at work

Identify a networked technology you use at home, at work, or as a personal convenience. Research and identify three potential threats to endpoint security.

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