Motorola DSP96002 User Manual page 524

32-bit digital signal processor
Table of Contents

Advertisement

B.1.8 N Complex Multiplies
cr(I) + jci(I) = ( ar(I) + jai(I) ) * ( br(I) + jbi(I) ), I=1,...,N
cr(I) = ar(I) * br(I) - ai(I) * bi(I)
ci(I) = ar(I) * bi(I) + ai(I) * br(I)
R1
cr,ci
D5 = ar D6 = bi D4 = br D7 = ai
move
move
move
move
fmpy.s
fmpy.s
do
fmpy
fmpy.s
fmpy
fmpy.s
_end
MOTOROLA
R0
ar,ai
R4
#aaddr,r0
#baddr,r4
#caddr-1,r1
d6,d5,d1
d4,d7,d2
#N,_end
d6,d7,d2 fadd.s d2,d1
d4,d5,d0
d6,d5,d1 fsub.s d2,d0
d4,d7,d2
DSP96002 USER'S MANUAL
br,bi
x:(r0),d5.s
x:(r4)+,d4.s y:(r0)+,d7.s
x:(r0)+,d5.s y:(r4),d6.s
x:(r4)+,d4.s d1.s,y:(r1)
d0.s,x:(r1)+
Program
Words
1
1
1
y:(r4),d6.s
1
1
1
2
y:(r0),d7.s
1
1
1
1
---
Totals:
12
(12
ICycles
1
1
1
1
1
1
3
1
1
1
1
---
4N+9
4N+9)
B-5

Advertisement

Table of Contents
loading

Table of Contents