21.07.2015 Views

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

firdecFigure 4–17. x Array in Memoryoldest x( ) entrynewest x( ) entryx(0)x(1)•x(nx–2)x(nx–1)lowest memory addresshighest memory addressFigure 4–18. r Array in Memoryoldest x( ) entrynewest x( ) entryr(0)r(1)•r(nx–2)r(nx–1)lowest memory addresshighest memory addressExampleBenchmarksSee examples/fir2 subdirectory(preliminary)Cycles † Core: (nx/2) * [5+(nh–3)]Overhead: 32Code size(in bytes)134† Assumes all data is in on-chip dual-access RAM and that there is no bus conflict due to twiddletable reads and instruction fetches (provided linker command file reflects those conditions).firdecFunctionDecimating FIR Filterushort oflag = firdec (DATA *x, DATA *h, DATA *r, DATA *dbuffer , ushort nh,ushort nx, ushort D)(defined in decimate.asm)Argumentsx [nx]h[nh]Pointer to real input vector of nx real elements.Pointer to coefficient vector of size nh in normal order:H = b0 b1 b2 b3 …4-40

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!