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.

TMS320C6678 : Test performance of dsplib

Other Parts Discussed in Thread: TMS320C6678, CCSTUDIO

Hello,

I would like to test the performance of dsplib for TMS320C6678 using a TI
simulator (and later on an EVM).

1. Can you provide a source example that demonstrates how to measure clocks ?

2. How accurate is the measure using the TI simulator compared to a real EVM ?

3. Does TI simulator assumes the data is already in L1 or does it simulates the fetch from RAM to L2 and from there to L1 ?

Thanks,

Zvika

  • Hi,

    1. Here is an example code that I used to get the number of cycles during the execution of my routines :

    long long db,fn,val;

    _CSL_tscEnable();
    db=_CSL_tscRead();

    // your function here

    fn=_CSL_tscRead();
    val=fn-db;
    printf("time : %lld cycles\n",val);

    You must include the file : csl_tsc.h from CSL

    2. According to my experience in the TMS320C6678 simulator, it usually give a really good approximation (a difference of few cycles)

    3. You can choose where to put your data (L1, L2, MSM or DDR3) using a .cmd file in CCStudio .. the simulator is so good estimating memory latencies for L1, L2 or MSM

    Regards

  • Dear Mr. Ensa,

    Your help is highly appreciated !

    When I worked with TI's MSP430 I downloaded a zip file contains many examples of how to use peripherals.

    Does TI have the same for the C6000 multi core ?

    I'm looking for a getting started guide explains about CSL and all available libraries (e.g csl_tsc.h)

    Thanks,

    Zvika.

  • Zvika,

    You can download the MCSDK (Multicore Software Development Kit) from the TI website :

    http://software-dl.ti.com/sdoemb/sdoemb_public_sw/bios_mcsdk/latest/index_FDS.html

    Which contains the CSL library and several examples. In my case and after installation, I can see the CSL files here :

    C:\Program Files\Texas Instruments\pdk_C6678_1_0_0_17\packages\ti\csl

    I include to CCStudio the full package : C:\Program Files\Texas Instruments\pdk_C6678_1_0_0_17\packages

    Then, C includes should be on the form :

    #include <ti/csl/csl_cache.h>

    Regards