Motorola MCF5281, MCF5282 user manual Motorola

Models: MCF5282 MCF5281

1 816
Download 816 pages 28.97 Kb
Page 123
Image 123

EMAC Instruction Set Summary

}

/* check for accumulation overflow */ if (accumulationOverflow == 1)

then {MACSR.PAVx = 1 MACSR.V = 1

if (inst == MSAC && MACSR.OMC == 1) then result[47:0] = 0x0000_0000_0000 else if (MACSR.OMC == 1)

then /* overflowed MAC, saturationMode enabled */

result[47:0] = 0xffff_ffff_ffff

}

/* transfer the result to the accumulator */ ACCx[47:0] = result[47:0]

}

MACSR.V = MACSR.PAVx MACSR.N = ACCx[47]

if (ACCx[47:0] == 0x0000_0000_0000) then MACSR.Z = 1

else MACSR.Z = 0

if (ACCx[47:32] == 0x0000) then MACSR.EV = 0 else MACSR.EV = 1

break;

}

MOTOROLA

Chapter 3. Enhanced Multiply-Accumulate Unit (EMAC)

3-19

Page 123
Image 123
Motorola MCF5281, MCF5282 user manual Motorola