Pipelining/Problem 3

Use the following code fragment:

 1. Loop: LD R1, 0(R2) 
 2. DADDI R1, R1, #1 
 3. SD 0(R2), R1 
 4. DADDI R2, R2, #4 
 5. DSUB R4, R3, R2 
 6. BNEZ R4, Loop

Solution

Screen Shot 2014-04-05 at 5.08.06 PM.png