Fix $readmem file not found to be warning not error (#3310).

This commit is contained in:
Wilson Snyder 2022-02-19 10:03:55 -05:00
parent decfa6bd7a
commit e52a4ac74f
4 changed files with 4 additions and 4 deletions

View File

@ -17,6 +17,7 @@ Verilator 4.219 devel
* Removed the deprecated "fl" attribute in XML output; use "loc" attribute instead.
* Suppress WIDTH warning on negate using carry bit (#3295). [Peter Monsson]
* Fix skipping public enum values with four-state values (#3303).
* Fix $readmem file not found to be warning not error (#3310). [Alexander Grobman]
Verilator 4.218 2022-01-17

View File

@ -1844,7 +1844,7 @@ VlReadMem::VlReadMem(bool hex, int bits, const std::string& filename, QData star
m_fp = std::fopen(filename.c_str(), "r");
if (VL_UNLIKELY(!m_fp)) {
// We don't report the Verilog source filename as it slow to have to pass it down
VL_FATAL_MT(filename.c_str(), 0, "", "$readmem file not found");
VL_WARN_MT(filename.c_str(), 0, "", "$readmem file not found");
// cppcheck-suppress resourceLeak // m_fp is nullptr - bug in cppcheck
return;
}

View File

@ -1,2 +1,2 @@
%Error: t/t_sys_readmem_bad_NOTFOUND.mem:0: $readmem file not found
Aborting...
%Warning: t/t_sys_readmem_bad_NOTFOUND.mem:0: $readmem file not found
*-* All Finished *-*

View File

@ -14,7 +14,6 @@ compile(
);
execute(
fails => $Self->{vlt_all},
expect_filename => $Self->{golden_filename},
);