Check in Rename stage for nextPcs of Traps

This commit is contained in:
Franz Fuchs
2021-07-26 07:02:21 +01:00
parent 2831cd7ee3
commit cc25ee69d3
2 changed files with 12 additions and 1 deletions

View File

@@ -1188,7 +1188,7 @@ module mkCore#(CoreId coreId)(Core);
`ifdef CONTRACTS_VERIFY
EventsTransExe transExe = renameStage.events;
SupCnt wildJumps = 0;
SupCnt wildExceptions = 0;
SupCnt wildExceptions = transExe.evt_WILD_EXCEPTION;
for(Integer i = 0; i < valueof(AluExeNum); i = i+1) begin
let alu_events = coreFix.aluExeIfc[i].events;
wildJumps = wildJumps + alu_events.evt_WILD_JUMP;

View File

@@ -394,6 +394,17 @@ module mkRenameStage#(RenameInput inIfc)(RenameStage);
end
`endif
`ifdef PERFORMANCE_MONITORING
`ifdef CONTRACTS_VERIFY
let validPc = (x.orig_inst[1:0] != 2'b11) ? addPc(pc,2) : addPc(pc,4);
if((ppc != validPc)) begin
EventsTransExe events = unpack(0);
events.evt_WILD_EXCEPTION = 1;
events_reg <= events;
end
`endif
`endif
`ifdef CHECK_DEADLOCK
renameCorrectPath.send;
`endif