Question: Consider an inner product loop that computes S = x[i]*y[i] for vectors of length N. The MIPS assembly code is: Because these numbers are floating-point,
![Consider an inner product loop that computes S = x[i]*y[i] for](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3aea135f11_98466f3aea0a0700.jpg)
Consider an inner product loop that computes S = x[i]*y[i] for vectors of length N. The MIPS assembly code is: Because these numbers are floating-point, the execute stage takes two cycles, so the modified MIPS pipeline is now: IF, ID, EX1, EX2, MEM, WB. Schedule this loop on a the new pipeline with no forwarding Schedule this loop on the new pipeline with forwarding Write the code of a 2x unrolled version of this loop reordering the instructions to minimize stalls, show its schedule on the new pipeline (add 10 to the register numbers to distinguish the second iteration from the first) Consider an inner product loop that computes S = x[i]*y[i] for vectors of length N. The MIPS assembly code is: Because these numbers are floating-point, the execute stage takes two cycles, so the modified MIPS pipeline is now: IF, ID, EX1, EX2, MEM, WB. Schedule this loop on a the new pipeline with no forwarding Schedule this loop on the new pipeline with forwarding Write the code of a 2x unrolled version of this loop reordering the instructions to minimize stalls, show its schedule on the new pipeline (add 10 to the register numbers to distinguish the second iteration from the first)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
