diff --git a/Changes b/Changes index a0e1f3752..0a057baec 100644 --- a/Changes +++ b/Changes @@ -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 diff --git a/include/verilated.cpp b/include/verilated.cpp index 44e131e11..e90644bfa 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -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; } diff --git a/test_regress/t/t_sys_readmem_bad_notfound.out b/test_regress/t/t_sys_readmem_bad_notfound.out index 317be5d9a..bb1d719c9 100644 --- a/test_regress/t/t_sys_readmem_bad_notfound.out +++ b/test_regress/t/t_sys_readmem_bad_notfound.out @@ -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 *-* diff --git a/test_regress/t/t_sys_readmem_bad_notfound.pl b/test_regress/t/t_sys_readmem_bad_notfound.pl index d89f1290d..56cc415df 100755 --- a/test_regress/t/t_sys_readmem_bad_notfound.pl +++ b/test_regress/t/t_sys_readmem_bad_notfound.pl @@ -14,7 +14,6 @@ compile( ); execute( - fails => $Self->{vlt_all}, expect_filename => $Self->{golden_filename}, );