I am a master student in germany and doing my thesis currently. I wanted to measure CPU cycles using emulation/simulation for some code that is running on a cortex m4F processor based board. I had QEMU in mind at initial but it turns out it doesn't have support for my board and neither it is cycle accurate plus FP is not supported. Now I am searching for any freely available simulator or emulator that I can use for accurate cycle accurate measurement and do support FP and DSP instructions.
I am still not sure how accurate is QEMU for Cortex-M4 in terms of cycle accuracy? anyone with some experience?
I also saw this thread: https://community.arm.com/tools/f/discussions/5212/cycle-accurate-instruction-set-simulator-for-cortex-m
where there is said something about CPAKS for cortex M4 that is cycle accurate. But is it freely available? (for students etc).
Some quick replies will be appreciated. Thank you in advance.
CM4 has cycle counters which allows to measure quite exactly. No need for a SW emulator.
I want a pure software based solution. This cycle counter is on the chip DWT, which I am aware of. But I am looking for a pure software based solution without any hardware :) Thanks
Then it is very unlikely to find a simulator to simulate _exact_ your board.Anyway, there are cycle-accurate simulators around. It is only a matter of price.F.e. ARM DS-5 contains one. KEIL MDK maybe also. Windriver SIMICS is one ...
Yeah I have also realized that finding exact cycle accurate simulator that is freely available is quite difficult. Thanks for the commercial simulators. I am aware of Keil already as I have experience with it. But do you know of any freely available simulator that is accurate enough in terms of cycle accuracy (close to actual) for cortex-m4?
Keil MDK-Lite is free, if you don't mind the 32kbytes limitation. However, neither Keil nor DS-5 contain a cycle accurate simulator. Not sure about SIMICS.
View all questions in Cortex-M / M-Profile forum