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.

convol2Figure 4–8. r Array in Memoryr(0)r(1)•r(nr–2)r(nr–1)lowest memory addresshighest memory addressFigure 4–9. h Array in Memoryh(0)h(1)•h(nh–2)h(nh–1)lowest memory addresshighest memory addressExampleBenchmarksSee examples/convol1 subdirectory(preliminary)Cycles † Core: nr/2 * [3+(nh–2)]Overhead: 58Code size(in bytes)101† 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).convol2FunctionArgumentsConvolution (fastest)ushort oflag = convol2 (DATA *x, DATA *h, DATA *r, ushort nr, ushort nh)x[nr+nh–1] Pointer to input vector of nr + nh – 1 real elements.h[nh]r[nr]Pointer to input vector of nh real elements.Pointer to output vector of nr real elements. In-placecomputation (r = x) is allowed (see Description section forcomment). This array must be aligned on a 32-bitboundary in memory.Function Descriptions4-27

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

Saved successfully!

Ooh no, something went wrong!