Hi, is it still possible to measure cycle number in FVP? (cycle number reported by the PMU_CCNTR register using the has_pmu parameter).
I believe a number is output, but these models are not cycle accurate, and so the number will be relatively meaningless.
It seems that FVP Corstone SSE-300 does no longer has the parameter "Cpu0.has_pmu" which is used to get cycle count (I Used --list-params to see all available parameter). Is there any other parameter that can be used to get cycle count?
Yes, the "has_pmu" parameter has been removed from the ARMCortexM55CT component (which is used in FVP Corstone SSE-300) since version 11.22 because keeping this parameter is misleading. See below.
developer.arm.com/.../ARMCortexM55CT
Changes in 11.22.14 Parameters removed: * has_pmu
This change enables the M55 component to match the same IP configuration as the hardware i.e. if the DBGLVL parameter is set to non zero, PMU is present. By default, "cpu0.DBGLVL" is set to 2 in FVP Corstone SSE-300 so PMU is present.
BTW, as Ronan mentioned, FVPs are not cycle accurate (see the link below) so the values are inaccurate.
https://developer.arm.com/documentation/100964/1122/About-the-models/Model-capabilities?lang=en
And, not all the PMU event counters are implemented in the models so some of them only show zero although the PMU registers exist in the models. These registers only exist to not break software (if they don't exist, you may see a fault).
Does that mean if I use FVP Corstone SSE-300 version less that 11.22 I would be able to use the "has_pmu" parameter? (I am actually trying to implement a code from GitHub written 3 years ago, so I am assuming if I could get the then used version I may be able to replicate the results).
Correct. The has_pmu parameter is available in any versions prior to 11.22.
I downloaded the current version from https://developer.arm.com/downloads/-/arm-ecosystem-fvps, I cannot find any link that leads me to the older version. Are the older version accessible for download? is there any other way to get it?
Regarding older versions, I've answered to your other post - See https://community.arm.com/support-forums/f/arm-virtual-hardware-forum/55658/older-version-of-fvp-needed .