SPRUIY2 November 2024 F29H850TU , F29H859TU-Q1
Dx registers are read in D2 phase of pipeline and written in E1, E2, and E3. Dx register read in D2 and any pending instruction that writes to Dx in pipeline from R1 to E3 causes a pipeline protection stall. This is shown in Table 4-9.
Register Sources | Pipeline Phase | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
D2 | R1 | R2 | R3 | E1 | E2 | E3 | E4 | E5 | E6 | |
Pipeline phase in register resource is read | ||||||||||
Dx | Yes | Yes | ||||||||
Pipeline phase in register resource is written | ||||||||||
Dx | Yes | Yes | Yes |
Dx Write Scheduled in E1 and Read in D2 Phase of Pipeline is an example of Dx write scheduled in E1 and is read in D2 phase of pipeline.
LD.32 D0,*A3 ; Load D0 from address A3
BCMPZ @ISZERO, D.EQ, D0 ; Branch if D0 is 0x0
ISZERO
Table 4-10 is the pipeline diagram for the sequence in Dx Write Scheduled in E1 and Read in D2 Phase of Pipeline, BCMPZ is held in D2 for 4 extra cycles.
Cycle | Pipeline Phase | D0 Register | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
D2 | R1 | R2 | R3 | E1 | E2 | E3 | E4 | E5 | E6 | |||
1 | LD.32 | |||||||||||
2 | BCMPZ | LD.32 | ||||||||||
3 | BCMPZ | PROT | LD.32 | |||||||||
4 | BCMPZ | PROT | PROT | LD.32 | ||||||||
5 | BCMPZ | PROT | PROT | PROT | LD.32 | |||||||
6 | BCMPZ | PROT | PROT | PROT | PROT | LD.32 | D0=[*A3] | |||||
7 | Next Inst | BCMPZ | PROT | PROT | PROT |