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.

OMAP-L138: Execution Time

Part Number: OMAP-L138

I want to calculate Execution time of Certain part of code. Please let me know How to do this...?

Prashant

  • The team is notified. They will post their feedback directly here.

    BR
    Tsvetolin Shulev
  • Prashant,

    Are you measuring execution time on DSP or the ARM. There are multiple ways to benchmark code on an SOC. If you can provide exact details of the core and what kind of function you are trying to benchmark we can provide more accurate guidance.

    DSP has TSCH And TSCL counter register internally that can be used to measure execution time in DSP cycles and then converted to time. You can refer to DSP libraries and their test cases or the follwoing application note to check reference implementation:
    www.ti.com/.../core-benchmarks.html

    You can also use 64 bit free running timer for benchmarking. You can start the free running timer and then then read the timer counter before and after execution of the code to estimate cycle count.

    IF you are using Linux or BIOS kernel then you have functions like timeofday or Clock module APIs that can be used to benchmark code. If you are loading and running code over emulator using CCS then you can use the clock built into the IDE for measuring execution time as described here:
    processors.wiki.ti.com/.../Profile_clock_in_CCS

    Hope this helps.

    Regards,
    Rahul
  • Hello Rahul,

    Thanks for reply.

    I have some piece of code in which we do some Binary to Engineering value conversion. This consists of Floating point operations. I will be having 10 Channels 32 bit Hexadecimal ADC Data  and this I will convert to 10 Channel Engineer value like floating point numbers. I want to know what is Execution time required for doing this conversion.

    So Please let me know if any other information required.

    Regards,

    Prashant.

  • Hello Rahul,
    My code is running in DSP.
  • Prashant,

    The TSCL and TSCH registers should work well for this purpose. They are internal DSP counter registers which is will help measuring exectuion time in DSP cycles which should allow you to get the timing both at 456Mhz as well as 300 Mhz as DSP will take same number of cycles.

    Refer to the DSPLIB examples or the audio-benchmark-starterkit demo examples to see how this can be used.

    You can also refer the discussion here:
    e2e.ti.com/.../37848

    Regards,
    Rahul