Arm backend: Auto generate cycle table if ETDump is used #13943
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
If you use run.sh with --etdump e.g. something like this:
examples/arm/run.sh --et_build_root=arm_test/test_run --target=ethos-u55-256 --model_name=mv2 --etdumpThe script will dig out the ETDump file from the FVP logs and use it to produce a cycle table automatically.
Please remember the the CorstoneFVP is not a cycle accurate simulator and the CPU cycle numbers can not be trusted, please run on real hardware or FPGA to get valid number. Running it on a FVP is mostly useful to check that the tools/flow work and not the actual CPU cycle numbers.
Test plan
This is tested by the test scripts
cc @digantdesai @freddan80 @per @oscarandersson8218