This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSPLIB example error

In trying to run the example supplied with dsplib_3_1_1_1, I uncovered an error that you should be made aware of it.  After untarring the tarball, I tried to run fft_example provided in the examples directory. 

 

From the file fft_example.c in the examples directory:

 

#include "gen_twiddle_fft16x16.h"

main()

{

 

                …

gen_twiddle_fft16x16(w_16x16, N);

..

 

}

 

The implementation of gen_twiddle_fft16x16 is included in the examples directory in a file called gen_twiddle_fft16x16.c.  I am assuming that you wanted us to use this file since it was included in the examples directory and by virtue of the double quotes (as opposed to <>) in the #include above.

 

It is my contention that the file gen_twiddle_fft16x16.c in the examples directory is incorrect for little endian machines.  I was able to get good results using gen_twiddle_fft16x16.c in packages/ti/dsplib/src/DSP_fft16x16/c64P.

 

Do you concur?   Perhaps you should not provide the twiddle functions in the example directory at all since you include them elsewhere in the dsplib package.

  • Demetrious,

    Can you give us some hints why you thing the version in the examples directory is incorrect for little endian?

    The 3.1.1.1 version I have downloaded (not the expert by any means) is for the C66x, and a file compare showed the two copies of the .c and .h files to be identical.

    Regards,
    RandyP