< previous page page_248 next page >

Page 248
Table 4.17 Stages.
Stage.WStage.WRRegister to be Written by Instr
A.WA.WRin AG stage
T.WT.WRin T stage
F.WF.WRin DF stage
E.WE.WRin EX stage

When this instruction passes to the AG stage, it becomes A.W and A.WR.
If a pipeline stage is empty, the W bit is false (=0). In the EX cycle, there is another field, E.LAST, which indicates whether this is the last cycle of execution for the current instruction; this information is needed to control the bypass.
Thus, suppose the instruction
d87111c01013bcda00bb8640fdff6754.gif
ADD R1,D[R2,R3]
enters the decoder. It generates a one- and a four-bit field:
.W
.WR
1
0001

As this instruction passes into different pipeline segments (assume only one instruction in a segment at a time), this information is transferred to the stage interlock controller for that segment. Since there are four segments involved, we need four 5-bit registers to hold this information:
As the preceding ADD instruction passes from stage to stage, its stage interlock information is shifted down one position until execution is complete.
In the D stage, the following signals are also available:
D.B2Base register field from the instruction.
D.X2Index register field from the instruction.
D_use_B2Signal indicating whether B2 register is needed for address.
D_use_X2Signal indicating whether X2 register is needed for address.

Note that D_use_B2 and D_use_X2 are false if the respective register field in the instruction is zero, since register 0 is never used for address generation.

 
< previous page page_248 next page >