mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
Merge pull request #862 from jordancarlin/verilator_fixes
Remove Verilator hack
This commit is contained in:
commit
d4a8377406
@ -402,14 +402,6 @@ module testbench;
|
|||||||
// and initialize them to zero (also initilaize them to zero at the start of the next test)
|
// and initialize them to zero (also initilaize them to zero at the start of the next test)
|
||||||
updateProgramAddrLabelArray(ProgramAddrMapFile, ProgramLabelMapFile, memfilename, WALLY_DIR, ProgramAddrLabelArray);
|
updateProgramAddrLabelArray(ProgramAddrMapFile, ProgramLabelMapFile, memfilename, WALLY_DIR, ProgramAddrLabelArray);
|
||||||
end
|
end
|
||||||
`ifdef VERILATOR // this macro is defined when verilator is used
|
|
||||||
// Simulator Verilator has an issue that the validate logic below slows runtime 110x if it is
|
|
||||||
// in the posedge clk block rather than a separate posedge Validate block.
|
|
||||||
// Until it is fixed, provide a silly posedge Validate block to keep Verilator happy.
|
|
||||||
// https://github.com/verilator/verilator/issues/4967
|
|
||||||
end // restored
|
|
||||||
always @(posedge Validate) // added
|
|
||||||
`endif
|
|
||||||
if(Validate) begin
|
if(Validate) begin
|
||||||
if (PrevPCZero) totalerrors = totalerrors + 1; // error if PC is stuck at zero
|
if (PrevPCZero) totalerrors = totalerrors + 1; // error if PC is stuck at zero
|
||||||
if (TEST == "buildroot")
|
if (TEST == "buildroot")
|
||||||
@ -462,10 +454,7 @@ module testbench;
|
|||||||
`endif
|
`endif
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
`ifndef VERILATOR
|
|
||||||
// Remove this when issue 4967 is resolved and the posedge Validate logic above is removed
|
|
||||||
end
|
end
|
||||||
`endif
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user