分别在CCS 软仿6678和6678EVM板子上跑程序,用clock计数,板子上选的是CPU EXECUTE CYCLES,软仿时候选的是CYCLE.CPU ,得出的结果却是软仿比板子上跑的时钟数要少,而且少的蛮多的,这是什么原因?
同时CCS中CLOCK里面的各个选项(例如cycle.cpu和cpu execute cycles等等这些)都有什么差别?
谢谢~~
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.
软件仿真时,您选用的是哪种simulator,如果是function的,那么cycle.cpu就是单纯的指令数,并不包括访问memory带来的开销。在板上上跑的时候,建议使用dsp的TSCL寄存器,该寄存器是根据DSP 的时钟进行累加的,可以较准确的测出cycle数。