AnsweredAssumed Answered

MAC-unit Syntax for CF V1

Question asked by Wade Hassler on Sep 4, 2012
Latest reply on Sep 6, 2012 by kef

The Coldire  V1's multiplier/accumulator is described as having a multiply/accumulate/load mode to speed up MAC-operations.

It also can implement  circular addressing, so that no overhead is incurred for address-checking.

 

I can't figure out the syntax, however: it seems that one must write:

mac.w  D0.L, D1.L, (A0)+&  ,  D0 ;

 ... in order to

       word-multiply D0 and D1,

       add their product to the accumulator,

       increment A0,

       'and' A0's address with the MASK-register,

       load the value newly-indicated by A0 into D0

 

But I cannot have both the '-' and '&' in the line at the same time. This seems odd, as if A0 must be separately incremented OR it must be separately masked.

What have I missed?

 

Wade Hassler

Outcomes