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, 

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

1 Expert Approved Answer
Step: 1 Unlock

1The code would need 4 cycles to run using stalling ... View full answer

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 Computer Engineering Questions!