Replies: 1 comment
-
Sorry for the delay -- been out of town. For the first option, you should be able to create an expression in your report file like we do for Dhrystone MIPS calculation: https://github.com/riscv-software-src/riscv-perf-model/blob/8d187b22e95ac8490489fa3ed9f64a51faf42705/reports/dhry_report.yaml#L14 It's not elegant, but possible. Another option is to create a
The neat thing you can do here is to create the For (2), if you use the Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hi,
We have some statistics that are calculated at the end of simulation via
simulationTerminating_()
. For example, acache.total_read_access
of a cache is the sum of allcache.bank[0-7].read_access
of its banks 0 to 7. When you use triggers (e.g., start and stop) to dump statistic report for a specific region, this stat does not get updated becausesimulationTerminating_()
is not called at trigger points.I can think of two possible options:
(1) In the report def yaml file, I define something like this
This prints out the
read_access
per banks, and I need to do a post-processing step to accumulate allread_access_[0-7]
after the report gets generated. It would be nice if we can define a sum across all instances ofcache.bank*.read_access
in the report.(2) In the simulator, call a function similar to
simulationTerminating_()
to accumulate partial stats at trigger points. I don't know if something like that already existing in the framework. If so, can someone point me to that?Thanks,
Tuan
Beta Was this translation helpful? Give feedback.
All reactions