mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
busybear: only check pc when it actually changes
This commit is contained in:
parent
4833b36535
commit
965d48afe7
@ -335,8 +335,10 @@ module testbench_busybear();
|
|||||||
end
|
end
|
||||||
logic [31:0] InstrMask;
|
logic [31:0] InstrMask;
|
||||||
logic forcedInstr;
|
logic forcedInstr;
|
||||||
|
logic [63:0] lastPCF;
|
||||||
always @(dut.PCF or dut.hart.ifu.InstrF) begin
|
always @(dut.PCF or dut.hart.ifu.InstrF) begin
|
||||||
if (~reset && dut.hart.ifu.InstrF !== {32{1'bx}}) begin
|
if (~reset && dut.hart.ifu.InstrF !== {32{1'bx}}) begin
|
||||||
|
if (dut.PCF !== lastPCF) begin
|
||||||
lastCheckInstrF = CheckInstrF;
|
lastCheckInstrF = CheckInstrF;
|
||||||
lastPC <= dut.PCF;
|
lastPC <= dut.PCF;
|
||||||
lastPC2 <= lastPC;
|
lastPC2 <= lastPC;
|
||||||
@ -412,6 +414,8 @@ module testbench_busybear();
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
lastPCF = dut.PCF;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
// Track names of instructions
|
// Track names of instructions
|
||||||
|
Loading…
Reference in New Issue
Block a user