Next: ... Up: Pipelining: avoiding stalls Previous: Pipelining: avoiding stalls

Bypassing to avoid stalls

Recall the example:

ADD R1, R2, R3    (R1:=R2+R3)
SUB R4, R1, R5    (R4:=R1-R5)
Inst$^{\rm n}$                           
ADD R1,R2,R3  IF ID EX MEM WB                
SUB R4,R1,R5    IF ID EX MEM WB              
Cycle  1 2 3 4 5 6              
         $^\uparrow$R1 written here          
       $^\uparrow$R1 read here              

 (H&P pp.147)


next up previous
Next: ... Up: Pipelining: avoiding stalls Previous: Pipelining: avoiding stalls