
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
925
24.5.8.3.1
Multiply and Multiply-Accumulate Operation Length
MDU needs two sources, A source and B source, to perform an operation. The time needed to perform a
multiply or multiply-accumulate is:
•
On 24-bit x 8 bit multiplies: 2 microcycles (one start-MDU plus one execution microcycle)
•
On 24-bit x 16 bit multiplies: 3 microcycles (one start-MDU plus two execution microcycles)
•
On 24 bit x 24 bit multiplies/macs: 4 microcycles (one start-MDU plus three execution
microcycles)
An internal pipeline in MDU allows multiply-accumulate (or even non-fractional multiply) operations to
start one microinstruction before a multiplication or multiply-accumulate (signed or unsigned) has been
completed (e.g., one can start one multiply or multiply-accumulate once every three microinstructions).
However, by doing that it is not possible to read the result in MACH and MACL (although the MDU flags
can be tested), so this is intended to be used in a multiply-accumulate sequence. It is also allowed to mix
different sizes in multiply/mac sequences.
Multiply-accumulate operations are similar to multiply operations, except that the contents of MACH and
MACL registers are added to the multiplication result.
When multiply or multiply accumulate operations finish, MACL and MACH hold the least and the most
significant 24-bit words, respectively.
24.5.8.3.2
Divide operation length
The divide operation is always unsigned. The division completes in 13 microcycles, meaning that after the
start divide microinstruction, one has to wait for 12 microcycles and then read the result and the remainder
in MACH and MACL registers. During the 12 execution microcycles, microengine can execute
microinstructions unrelated to the MDU.
24.5.8.3.3
Signed multiplication (mults)
MDU signed multiplication is defined as follows:
(signed) MACH,MACL = (signed) AS * (signed) BS
MC and MV flags are reset. MZ is set if result is 0, resets otherwise. MN is set if result is negative.
24.5.8.3.4
Unsigned multiplication (multu)
MDU unsigned multiplication is defined as follows:
unsigned
1
1
1
AS mdu_op BS
1
0
AS mdu_op (BS+1)
0
x
reserved
1
Includes the B-source (unsigned) in fmults (signed) operations.
Table 24-70. CIN and BINV with MDU operations
B-source operand
BINV
CIN
Operation performed
Содержание 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...