cva6
cva6 copied to clipboard
[BUG] List index out of range error for performance model
Is there an existing CVA6 bug for this?
- [x] I have searched the existing bug issues
Bug Description
When executing python3 perf-model/model.py verif/sim/
line 635, in count_cycles start = min(e.cycle for e in retired[0].events) IndexError: list index out of range
Commit: 2c881cb
The issue persists for different tests and configurations as well. I have checked that the selected log file is non-empty and generated correctly
@cathales
Hello!
Have you checked https://github.com/openhwgroup/cva6/tree/master/perf-model#adapt-rvfi-trace-generation?
EDIT1:
Also, it seems you are using Spike and not CVA6, which does not use this RVFI tracer.
As a workaround, you can modify the regular expression to remove the @cycle part.
We probably should make it optional in the regular expression, as the model does not use this information from the input trace.
EDIT2:
Ok it seems Spike trace is different, I’ll make the model regular expression compatible with Spike.
Hello again @ellial, can you try using #3008 and confirm that it works on your side?
Notice that the README has been modified as well, it should be easier now.
Here is the list of changes: https://github.com/openhwgroup/cva6/pull/3008/commits
Thanks for your feedback!