![Freescale Semiconductor MPC5632M Скачать руководство пользователя страница 881](http://html.mh-extra.com/html/freescale-semiconductor/mpc5632m/mpc5632m_manual_2330659881.webp)
MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
881
Preliminary—Subject to Change Without Notice
23.4.8.3.1
Multiply and Multiply-Accumulate Operation Length
MDU needs 2 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.
23.4.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.
23.4.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.
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 23-51. CIN and BINV with MDU Operations
B-source
operand
BINV
CIN
Op. Performed
Содержание MPC5632M
Страница 22: ...MPC563XM Reference Manual Rev 1 22 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 62: ...MPC563XM Reference Manual Rev 1 62 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 92: ...MPC563XM Reference Manual Rev 1 92 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 168: ...MPC563XM Reference Manual Rev 1 168 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 242: ...MPC563XM Reference Manual Rev 1 242 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 302: ...MPC563XM Reference Manual Rev 1 302 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 410: ...MPC563XM Reference Manual Rev 1 410 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 440: ...MPC563XM Reference Manual Rev 1 440 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 464: ...MPC563XM Reference Manual Rev 1 464 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 554: ...MPC563XM Reference Manual Rev 1 554 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 590: ...MPC563XM Reference Manual Rev 1 590 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 622: ...MPC563XM Reference Manual Rev 1 622 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 716: ...MPC563XM Reference Manual Rev 1 716 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1114: ...MPC563XM Reference Manual Rev 1 1114 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1144: ...MPC563XM Reference Manual Rev 1 1144 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1266: ...MPC563XM Reference Manual Rev 1 1266 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1316: ...MPC563XM Reference Manual Rev 1 1316 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1348: ...MPC563XM Reference Manual Rev 1 1348 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1362: ...MPC563XM Reference Manual Rev 1 1362 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1382: ...MPC563XM Reference Manual Rev 1 1382 Freescale Semiconductor Preliminary Subject to Change Without Notice ...