Question: Unrolling a MIPS loop. SOftware pipeline Problem A (9 Points) Unroll the following MIPS loop and eliminate all stalls. You must unroll the code the

Unrolling a MIPS loop. SOftware pipeline

Unrolling a MIPS loop. SOftware pipeline Problem A (9 Points) Unroll the

Problem A (9 Points) Unroll the following MIPS loop and eliminate all stalls. You must unroll the code the minimum number of times such that all stalls are eliminated in the scheduled/transformed code that you produce. Only concentrate on the MIPS loop code; assume that appropriate initialization and termination code is available. You should assume the following: .The floating point functional units are pipelined. Normal MIPS forwarding. Branch resolved in ID stage. .Delayed branch. Assume the following latencies: FP ALU operation followed by FP ALU operation: 2 cycles. FP ALU operation followed by store of FP result: 1 cycles Load of FP operand followed by FP ALU operation: 1 cycle. .Starting addresses of the arrays are as follows: x-array - location 0, y-array - location 1000, z-array - location 2000, and w- array -location 3000 F0 has been initialized with the value of c. .RI has been initialized to refer to the first elements of the x, y, z and w arrays. C code: for (i = 0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!