enabled performance counters

This commit is contained in:
2026-01-27 15:34:53 +00:00
parent dd3336a2e0
commit 8097b5cd3d
4 changed files with 13 additions and 0 deletions

View File

@@ -376,11 +376,13 @@ module mkMemExePipeline#(MemExeInput inIfc)(MemExePipeline);
// perf: load mem latency
let lat <- ldMemLatTimer.done(tag);
`ifdef PERF_COUNT
$display("Performance count hit");
if(inIfc.doStats) begin
exeLdMemLat.incr(zeroExtend(lat));
end
`endif
`ifdef PERFORMANCE_MONITORING
$display("Performance monitoring hit");
EventsCore events = unpack(0);
events.evt_LOAD_WAIT = saturating_truncate(lat);
events.evt_MEM_CAP_LOAD_TAG_SET = (d.tag) ? 1 : 0;
@@ -780,7 +782,9 @@ module mkMemExePipeline#(MemExeInput inIfc)(MemExePipeline);
end
`ifdef PERF_COUNT
$display("outside TLB");
if(isValid(cause) && inIfc.doStats) begin
$display("Counting TLB");
exeTlbExcepCnt.incr(1);
end
`endif