A Block Floating Point Implementation on the TMS320C54x DSP
A Block Floating Point Implementation on the TMS320C54x DSP
A Block Floating Point Implementation on the TMS320C54x DSP
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
SPRA610<br />
;–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––<br />
; Final iterati<strong>on</strong>: – this code is same as above loop, except<br />
; last instructi<strong>on</strong> omitted<br />
;–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––<br />
ld *AR_Z,15,a ; 2 cycles, Calculate Ym = 2*Ym – Ym^2*X<br />
ld *AR_Z,t<br />
; 1 cycle<br />
mpy *sp(SP_XNORM),b ; 1 cycle<br />
sth b,1,*AR_Z ; 2 cycles<br />
mpy *AR_Z,b<br />
; 1 cycle<br />
sub b,1,a<br />
; 1 cycle<br />
st #07000h,*AR_Z<br />
add *AR_Z,16,a<br />
sub *AR_Z,16,a<br />
sub *AR_Z,16,a<br />
add *AR_Z,16,a<br />
sth a,3,*AR_Z<br />
; 2 cycles, Make sure that 8000h