busybear: only check pc when it actually changes

This commit is contained in:
Noah Boorstin 2021-03-01 19:08:35 +00:00
parent 4833b36535
commit 965d48afe7

View File

@ -335,8 +335,10 @@ module testbench_busybear();
end
logic [31:0] InstrMask;
logic forcedInstr;
logic [63:0] lastPCF;
always @(dut.PCF or dut.hart.ifu.InstrF) begin
if (~reset && dut.hart.ifu.InstrF !== {32{1'bx}}) begin
if (dut.PCF !== lastPCF) begin
lastCheckInstrF = CheckInstrF;
lastPC <= dut.PCF;
lastPC2 <= lastPC;
@ -412,6 +414,8 @@ module testbench_busybear();
end
end
end
lastPCF = dut.PCF;
end
end
// Track names of instructions