riscv-software-src / riscv-perf-model

Example RISC-V Out-of-Order/Superscalar Processor Performance Core and MSS Model
Apache License 2.0
117 stars 43 forks source link

Add an example of PEvent usage to the model #141

Closed klingaard closed 5 months ago

klingaard commented 6 months ago

The Sparta modeling framework supports PEvents or Performance Events useful for correlating the performance model against other models like RTL. The format for PEvents is somewhat hard-coded, unfortunately, but in Sparta it's built on top of the logging mechanism which can be extended to different formats.

For this issue, I'll add a few PEvents to the model:

  1. One at Retire/ROB completion
  2. One at Decode
  3. One at Rename

CC @gvenkatagiri

klingaard commented 5 months ago

Work complete.