Question: Given the following code: LW R2, 0(RO) Add R1, R2 Sw R1, 10(RO) Add R1, R4 Mov R3, R1 Sub R2, R1 Inc RO
Given the following code: LW R2, 0(RO) Add R1, R2 Sw R1, 10(RO) Add R1, R4 Mov R3, R1 Sub R2, R1 Inc RO For a processor with Harvard architecture, running the above code How many cycles needed to run the above code using stalling only? [1] How many cycles needed to run the above code using full forwarding? [2] How many cycles needed to run the above code using alu-alu forwarding only? [3]
Step by Step Solution
3.36 Rating (162 Votes )
There are 3 Steps involved in it
1The code would need 4 cycles to run using stalling ... View full answer
Get step-by-step solutions from verified subject matter experts
