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.

Benchmarking

Other Parts Discussed in Thread: OMAP-L137

I am trying to benchmark a C6713 vs. an OMAP-L137 (C6747).

I got some code from this site that uses some sort of special internal clock, "TSCL".  But the c6x.h file that I included only defines this for "_TMS320C6400_PLUS".  Can I use this feature on my processors?  If so, how?  If not, can anybody point me to benchmark timing methods that will work on both processors?

  • Hello,

    The Time Stamp Counter is fairly new to our DSP devices so the older products such as C6713 do not have this feature. The easiest way to profile data at run-time is to configure one of the Timers and use it as your clock. I used to have a code snippet, but I have since lost it so hopefully pseudo code will help...

    - Declare three variables start, stop, and overhead
    - Configure a timer and start it
    - Read the value of the timer CNT register twice; store the first in start and the second in stop
    - Store the difference of stop - start in overhead. This is how long it takes to read the timer twice
    - Read the CNT register and store in start
    - Execute your code
    - Read CNT and store in stop
    - Take the difference less overhead
    - Multiply by 4 (on C6713 the Timer operates at 1/2 SYSCLK2 , and SYSCLK2 must be 1/2 SYSCLK1 )

    This will give you the number of cycles required to run that code in between the start and stop. This can work on the C6747 as well, but the TSCL significantly simplifies the process.

  • You can probably work with the clock as well.

    In CCS studio: go to Main menu->Profile->Clock-> enable. t the lower right corner a clock icon will appear with a number near to it. Double click on it to reset it to zero. Run over some function and you will get the CPU Cycles function takes.

    Please see:

    http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/p/12510/49055.aspx#49055

  • Hi Mariana.

    I am familiar with the CPU clock cycles method you have mentioned. That works fine. I was wondering about a function call based method that I could use at runtime without having to interrupt the flow.

    regards...

  • I understand,

    Then I suggest you use the timers as Tim mentioned.