put changing the interrupt counter and writing back to a register in the right order

This commit is contained in:
Franz Fuchs
2021-11-05 13:47:39 +00:00
parent 836ed5b143
commit 001c5e8347

View File

@@ -710,10 +710,10 @@ module mkCommitStage#(CommitInput inIfc)(CommitStage);
`ifdef PERFORMANCE_MONITORING
EventsCore events = unpack(0);
events.evt_TRAP = 1;
events_reg <= events;
if(trap matches tagged Interrupt .i) begin
events.evt_INTERRUPT = 1;
end
events_reg <= events;
`endif
// checks
doAssert(x.rob_inst_state == Executed, "must be executed");