Add a few more core performance counters.

This commit is contained in:
jon
2020-12-04 18:34:56 +00:00
parent bdc2d494f2
commit d6243be1dd
4 changed files with 73 additions and 16 deletions

View File

@@ -1103,8 +1103,8 @@ module mkCore#(CoreId coreId)(Core);
// ================================================================
// Performance counters
rule report_commit_events;
hpm_core_events[2] <= commitStage.events;
rule report_events;
hpm_core_events[2] <= unpack(pack(commitStage.events) | pack(coreFix.memExeIfc.events));
endrule
Vector #(1, Bit #(Report_Width)) null_evt = replicate (0);