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.

SK-AM62A-LP: What are the steps to get the cycle count of a C7x code using the CCS IDE on the SK-AM62A-LP board?

Part Number: SK-AM62A-LP

In order to calculate the cycle count of our C7x code on the SK-AM62A-LP board, we used an inbuilt "cycles()" function. However, we obtained a high MCPS value. Can anyone suggest an alternative method/step for calculating the MCPS of a C7x code using the CCS IDE?

Thanks,

Betsy Varughese

  • Hi Betsy,

    Can you share the sample code you are using to measure the MCPS. Also, please let us know the actual MCPS vs expected MCPS.

    Regards,

    Prashant

  • Yes, sure. In order to profile our code we followed the below methods,

    1. Using the __time32() and __time64() functions in the time.h header file. 

    Observations:

    1. From the header file itself, we understood that the resolution was only expressed in seconds (Screenshot attached below). So, In our audio frame processing, most of the frames are reported as 0's or 1's. Is there any way to express the time in microseconds or nanoseconds, so that we get more precise values?

    2. Using the clock() : _CODE_ACCESS clock_t    clock(void);

    Observations:

            1. Our team has noticed that there are multiple clock configuration setup options within CCS (screenshot attached).  We are seeking guidance on which specific option would be most suitable for our profiling purposes. Additionally, we would greatly appreciate any documentation or resources that could provide further information on the topic. 

            2. The clocks consumed by cycles() itself are approximately 3000, which is a very large value.

            3. Memory alignment has also been checked, and it is found to be normal

    We have observed higher MCPS values in both cases, which is unexpected. Therefore, we are seeking guidance on the optimal method to conduct profiling of our c7x code using CCS on the AM62A-LP board. We would greatly appreciate any suggestions or recommendations that can help us address this issue effectively. 

    Note: I have attached the sample profiling code for your reference.

      

    Clock configuration setup options available in CCS :

    Thanks & Regards,

    Betsy Varughese

  • Hi Betsy,

    Thank you for sharing the detailed information.

    I have assigned the query to our experts. The experts will get back to you.

    Thanks & Regards,

    Prashant

  • Our team looks forward to receiving your response as soon as possible.

  • Hi Betsy, 

    C7x general purpose programming is not currently supported on AM62A devices in our SDK. We don`t support this functionality on public E2E forums. 

    Please work with your local TI contact to reach us.

    Regards,

    Rahul