cva6 icon indicating copy to clipboard operation
cva6 copied to clipboard

[BUG] List index out of range error for performance model

Open ellial opened this issue 5 months ago • 3 comments

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//spike_sim/hello_world.rv32imc.log (or any other core configuration), the following error comes up:

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

ellial avatar Jun 12 '25 15:06 ellial

@cathales

JeanRochCoulon avatar Jun 12 '25 22:06 JeanRochCoulon

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.

cathales avatar Jun 13 '25 07:06 cathales

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!

cathales avatar Jun 13 '25 11:06 cathales