你好,我在用软件仿真的PROFILE统计函数运行时间和用clock计算函数运行时间,两者相差太大,其中clock计数统计时间为为26775/200M,profile统计计数为354548,时间为354548/1G,软件仿真profile时,时钟应该为1G吧?为什么两者相差这么多?哪一个是对的?谢谢支持
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.
你好,我在用软件仿真的PROFILE统计函数运行时间和用clock计算函数运行时间,两者相差太大,其中clock计数统计时间为为26775/200M,profile统计计数为354548,时间为354548/1G,软件仿真profile时,时钟应该为1G吧?为什么两者相差这么多?哪一个是对的?谢谢支持
不建议用simulator profiler来统计运行时间,这个跟实际在硬件上跑会差蛮多的。建议直接在板子上运行,然后用TSCL, TSCH两个寄存器来统计。
新版本的ccs都不带simulator了。软件仿真的具体时钟是cpu clock。
请看下面的网站。
https://software-dl.ti.com/ccs/esd/documents/ccs_counting_cycles.html