
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
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...