Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93091347

Have any Question?


Related Questions in Computer Engineering

A set of coins makes change fornbspnnbspif the sum of the

A set of coins makes change for n if the sum of the values of the coins is n. For example, if you have 1-cent, 2-cent and 4-cent coins, the following sets make change for 7: 7 1-cent coins 5 1-cent, 1 2-cent coins 3 1-ce ...

For the following c statement what is the corresponding

For the following C statement, what is the corresponding RISC-V assembly code? Assume that the variables f, g, h, and i are given and could be considered integers as declared in a C program. Use a minimal number of assem ...

Sam smartypants likes how splitting the problem up into

Sam Smartypants likes how splitting the problem up into halves in merge sort reduces the sorting problem from O(n 2 ) to O(n lg n). He decides that splitting the array into thirds will make things even better. That is, h ...

Every day your friend commutes to school on the subway at 9

Every day your friend commutes to school on the subway at 9 AM. If the subway is on time, she will stop for a $3 coffee on the way to class. If the subway is delayed she skips the coffee and goes straight to class. The p ...

Question suppose we iterate the application of a blurring

Question : Suppose we iterate the application of a blurring filter with kernel size 5 on an image of 800 times 600 pixels. How many times should we apply the filter for the color of the pixel at position (20, 20) to be i ...

A stock is expected to pay a 400 dividend per share the

A stock is expected to pay a $4.00 dividend per share. The growth rate is expected to be 5%. If investors demand 10% on this stock, what is the expected price of the stock 10 years from now?

Please tell me about planning and installing a wireless

Please tell me about Planning and Installing a Wireless Network

Give an example of a merger or acquisition where technology

Give an example of a merger or acquisition where technology contributed to its failure to produce desired outcomes. What reasons caused the failure? What actions might have helped ensure success?

Question create for your company amp conduct cyber

Question: Create for your company & conduct cyber assessment using the CSET Cybersecurity Framework (CSF) requirement-based assessment a. complete site info b. Sector & demo: i. [Select your business] ii. [Select your bu ...

A courier service advertises that its average delivery time

A courier Service advertises that it's average delivery time is less than six hours for a local deliveries. The random sample of times for 12 deliveries twin I'm just across town. The sample has a mean delivery time of 5 ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As