
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
836
Freescale Semiconductor
•
Number of parameter RAM accesses during execution of a Function thread
•
System clock frequency.
Each time slot may require a different number of microcycles, depending on the thread of a Function to be
executed. This variation is shown in
For more details on latency evaluation, see
Section 24.6.5, Estimating worst-case latency
.
Figure 24-34. Time-slot variation
24.5.4
Parameter sharing and coherency
SPRAM can be concurrently accessed by Host and Microengines (two in a dual eTPU engine system). In
general, there is no guaranteed order by which a group of parameters is accessed, which may lead to a lack
of internal consistency if two or more related parameters are read when only part of them is updated.
eTPU provides mechanisms to guarantee parameter coherency. The most generic mechanisms for
Host-eTPU coherency, suitable for any number of parameters, are:
•
the use of Transfer Service Thread mechanism.
•
the mailbox (or “software semaphore”) mechanism.
These mechanisms, described in
Section 24.6.3, Multiple parameter coherency methods
transfer parameters from temporary buffers in SPRAM to their definitive locations (or vice-versa). These
methods have the disadvantage of wasting processing and code memory resources.
eTPU also provides a
Coherent Dual-parameter Controller (CDC)
mechanism. It is used by Host to
coherently transfer pairs of parameters from/to a parameter buffer located on SPRAM to/from the
locations on SPRAM where parameters are accessed directly by the channels. Coherency is guaranteed by
SPRAM access arbitration. Although limited to two parameters only, it has lower latency and wastes no
microengine resources
1
Section 24.5.4.3, Coherent Dual-parameter Controller
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 (see
Section 24.5.9.1.7, Semaphore operations
Hardware Semaphores are described in detail in
Section 24.5.4.4, Hardware Semaphores
.
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.
1. A microengine access to the SPRAM in the moment CDC is performing the transfer may suffer a maximum of two wait-states.
Microcycles
Time Slot
Fixed Priority Level
1
2
3
4
5
H
M
H
L
H
6
M
Summary of Contents for MPC5644A
Page 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Page 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Page 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Page 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Page 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Page 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Page 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...