Download MCF5222x - Freescale Semiconductor
Transcript
Multiply-Accumulate Unit (MAC)
if (MACSR.V == 0)
then {if (inst == MSAC)
then result[31:0] = acc[31:0] - product[31:0]
else result[31:0] = acc[31:0] + product[31:0]
}
/* check for accumulation overflow */
if (accumulationOverflow == 1)
then {MACSR.V = 1
if (inst == MSAC && MACSR.OMC == 1)
then result[31:0] = 0x0000_0000
else if (MACSR.OMC == 1)
then /* overflowed MAC,
saturationMode enabled */
result[31:0] = 0xffff_ffff
}
/* transfer the result to the accumulator */
acc[31:0] = result[31:0]
MACSR.N = result[31]
if (result[31:0] == 0x0000_0000)
then MACSR.Z = 1
else MACSR.Z = 0
}
break;}
MCF52223 ColdFire® Integrated Microcontroller Reference Manual, Rev. 4
4-14
Freescale Semiconductor
Related documents
MCF5213 ColdFire ® Integrated Microcontroller Reference Manual
MCF52235 ColdFire Integrated Microcontroller Reference Manual
MCF5282 and MCF5216 ColdFire Microcontroller User`s Manual
MCF5282 ColdFire® Microcontroller User's Manual
Freescale Semiconductor i.MX31 PDK 1.4 Network Card User Manual
MCF5235RM, MCF5235
Motorola MCF5281 Network Card User Manual
bdiGDB_UserManual_ColdFire_33106
ColdFire Technical Notes V9.12.256
HCS12 T-Board V1.00 Manual EN
CardS12 V1.10 User Manual
1.1 Introduction 1.2 Differences Overview