Freescale Semiconductor e200z3 Reference Manual page 249

Power architecture core
Table of Contents

Advertisement

in the MEM stage, the next load or store can be calculating a new EA in the DEC/EA stage. The add in
this example does not stall despite a data dependency on its preceding load instruction.
Time Slot
First Load/Store Instruction (No Wait)
Second Load/Store Instruction (No Wait)
Add Instruction
For memory access instructions, wait states may occur. This causes a following memory access instruction
to stall since the following memory access may not be initiated as shown in
ld/st instruction incurs a wait state on the bus interface, causing succeeding instructions to stall.
Time Slot
First Load/Store Instruction (With Wait)
Second Load/Store Instruction (No Wait)
Add Instruction
Figure 6-13. Pipelined Load/Store Instructions with Wait-State
6.3.8
Move to/from SPR Instruction Pipeline Operation
Most mtspr and mfspr instructions are treated like single-cycle instructions in the pipeline and do not
cause stalls. Exceptions are for the MSR, the debug SPRs, the embedded floating-point APUs, and MMU
SPRs, which do cause stalls.
instruction timing.
Figure 6-14
applies to the debug SPRs and the EFPU's EFSCR. These instructions do not begin execution
until all previous instructions have finished their execute stage. If a multicycle instruction precedes an
mfspr or mtspr instruction, the mfspr or mtspr instruction does not begin execution until the preceding
multicycle instruction moves into the writeback stage as shown in
subsequent instructions stalls until the mfspr and mtspr instructions complete.
Freescale Semiconductor
IFETCH
DEC/EA
IFETCH
Figure 6-12. Pipelined Load/Store Instructions
IFETCH
DEC/EA
IFETCH
Figure 6-14
through
Figure 6-16
e200z3 Power Architecture Core Reference Manual, Rev. 2
Instruction Pipeline and Execution Timing
MEM
WB
DEC/EA
MEM
IFETCH
DEC
Figure
MEM
Stall (wait)
WB
DEC / EA
Stall
MEM
IFETCH
Stall
DEC
show examples of mtspr and mfspr
Figure
6-14. In addition, execution of
WB
EXECUTE
WB
6-13. Here, the first
WB
EXECUTE
WB
6-11

Advertisement

Table of Contents
loading

Table of Contents