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 questions

Hi

I made a new project and integrated DSPLIB(ver 3.4.0.0) to it, I want to profile some functions like FFT so for catching the time I tested as below:

1) I included time.h header file

2) I declared variables( types: clock_t) for reading clock() function before and after the function under test.

but when i debug the clock() function return zero!!

Question 1:

For above problem, Should I set any thing else? what should I do?

Question 2:

When I am in the debug view at CCS, when I choose the Tools\Graph all kinds of graphs are disable!! why???

Question 3:

Is there any references to tutorial about GEL file? How to set it?

Question 4:

Is there an absolute() function in the DSPLIB?(I didn't find)

Question 5:

How can I set PLL clocks in ,cfg file for example the clocks for network co_processor?

Question 6:

What is dsplib_cn.ae66 library?

Best Regards 

  • Hi
    Please answer me, I'm waiting.
  • Sorry, we missed answering this question.

    I am not aware of DSPLIB product in TI-RTOS. Are you using TI-RTOS? Can you provide more details about your project - device, SDK versions?

    Vikram
  • Hi

    my tools are :

    OS: win7 64bit

    CCS: 5.2

    board: TMDEVALC6678

    I can solve the first question, when you said TI_RTOS you mean SYS/BIOS? I should explain that the questions 3 and 5 are general questions and not relate 

    the DSPLIB project that I will explain below.

    I used a TI example  " C:\ti\dsplib_c66x_3_4_0_0\examples\fft_sp_ex\FFT_SP_Example_66_LE_ELF ", I integrated dsplib as mentioned before. I modified the example project as below:

    1) I defined the number of FFT point from 256 to 4096.

    2) I made a new input signal in " generateInput() " function.

    you can see my change as below:

    but he result wasn't correct, maybe the reason is the " gen_twiddle_fft_sp() " function. please guide me.

    Best Regards

  • It will be easier if you separate your questions into multiple posting. Different experts can answer different questions.

    But some obvious issues:

    abs function is part of the ANSI C definition (look at Kernighan and Ritchie for example) so any compiler has it part of the standard library (header stdlib.h)

    I am not sure what you mean by FFT gives not correct results. You generate a single frequency periodic input, so I assume you expect a single frequency in the frequency domain. Here is my advice:

    Start by executing TI example exactly as it is (same data same size)
    Next change the data to your signal and see if you get the correct answer
    And then change the size of the data

    Post the results

    and cn stands for c natural. This is a standard C implementation of the dsplib functions (and library) that does not use intrinsic and uses only standard C instructions. It is usually used as the "golden standard" to which the optimized library results are compared to.

    CCS - I suggest moving to CCSv6, but in general, starting CCS v4 TI implementation is Eclipse open source implementation. It has many advantages for the user. Unfortunately some of the tools that CCSv3 had were not implemented in the Eclipse implementation. Is this what you ask?


    Ran
  • Hi,

    Question 5:

    How can I set PLL clocks in ,cfg file for example the clocks for network co_processor?

    I hope, you can't set the clock for Network co-processor in *.cfg file but DSP.
    You have to refer platform code to change the PLL for NETCP peripheral.


    Question 3:

    Is there any references to tutorial about GEL file? How to set it?

    Please refer to the below TI wiki & user guides.
    processors.wiki.ti.com/.../GEL
    www.ti.com/.../spraa74a.pdf
    www.ti.com/.../spra381.pdf
    www.ece.rochester.edu/.../GEL_tutorial.pdf


    Question 2:

    When I am in the debug view at CCS, when I choose the Tools\Graph all kinds of graphs are disable!! why???

    You can see the GRAPH option once you load the code on core.