Enhanced Time Processing Unit (eTPU2)
Freescale Semiconductor
29-63
PXR40 Microcontroller Reference Manual, Rev. 1
For parameters shared by both Engines, eTPU provides
hardware semaphores
. Coherency is assured
given the semaphores are used to prevent concurrent access to the changing parameters. Microengine can
request semaphores using specific microinstructions.
Neither Host nor CDC have access to the hardware semaphores, but they can be combined with microcode
transfer mechanisms if Host must coherently access parameters which are also shared by both Engines.
29.3.4.1
Host Side Atomic Access
Host side atomic accesses can be achieved by either of following ways:
•
for one parameter, the SDM should be accessed by 32-bit-wide data transfers to ensure coherency
•
for two parameters only, using the Coherent Dual Parameter Controller.
•
indirectly, for any number of parameters, by requesting microcode to coherently access SDM in its
behalf. The host side atomicity problem becomes, then, a microengine side atomicity problem.
Some methods that use this approach to achieve coherency are described in
Multiple Parameter Coherency Methods
.
29.3.4.2
Coherent Dual-parameter Controller - CDC
Dual-parameter coherency is supported by a Coherent Dual-parameter Controller hardware - CDC, which
contends with microengine for SDM access. CDC atomically transfers, upon Host’s command, two
parameters from one area of the SDM to another. One area is a temporary (buffer) area, where the two
parameters are directly read or written by the Host. This temporary area has to begin in an SDM address
multiple of 2 words, and the two parameters must be sequential. The other area is the channel parameter
area where the microcode normally accesses the parameters, usually with the channel relative address
mode (see the
eTPU Reference Manual
for details). In this area, the parameters transferred by CDC don’t
have to be sequential. A transfer from the temporary area to the channel area, when the Host sends data to
the channel, is called a
write transfer
. Inversely, in a
read transfer
the parameters are copied from the
channel area to the temporary area (channel to Host).
Coherency is guaranteed by the SDM access contention rules implemented in the SDM arbiter. CDC
transfers are coherent in respect to the two Engines, so the target parameters in the channel area may be
shared by channels on them both. During CDC operation, the Host may suffer from 3 up to 11 eTPU clocks
wait states
1
, and the Microengine(s) may suffer up to 2 microcycle wait-states
2
. CDC accesses are atomic
with respect to Microengine(s) accesses to the SDM. Even when neither engine is in TST, CDC may suffer
up to 4 eTPU clock internal wait-states from SDM arbiter, meaning 9 slave wait-states to Host, so that it
does not break atomic back-to-back accesses from microengine(s). CDC also cannot break TST preload
accesses. Host can initiate CDC back-to-back transfers: there is no need of idle slave cycles between two
transfers.
1.
A microengine access to the SDM in the moment CDC is performing the transfer may suffer a maximum of two wait-states.
1.
The maximum number of Host wait states on CDC occurs when both microengines overlap their TSTs, delayed 3 eTPU
clocks from each other.
2.
One microcycle takes two eTPU clocks. Microengines get wait-states in multiples of microcycles, while Host and CDC
wait-states are multiples of eTPU clocks.
Summary of Contents for PXR4030
Page 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Page 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Page 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Page 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Page 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Page 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...