Change ZERODLY to a warning.

This commit is contained in:
Wilson Snyder 2023-03-12 21:28:14 -04:00
parent 39a5bce8a6
commit f13e753b52
4 changed files with 9 additions and 6 deletions

View File

@ -17,6 +17,7 @@ Verilator 5.009 devel
* Add --public-params flag (#3990). [Andrew Nolte]
* Support complicated IEEE 'for' assignments.
* Support $fopen as an expression.
* Change ZERODLY to a warning.
* Fix UNDRIVEN warning seg fault (#3989). [Felix Neumärker]
* Fix symbol entries when inheriting classes (#3995) (#3996). [Krzysztof Bieganski, Antmicro Ltd]

View File

@ -219,11 +219,11 @@ public:
|| m_e == CONTASSREG || m_e == ENCAPSULATED || m_e == ENDLABEL || m_e == ENUMVALUE
|| m_e == IMPURE || m_e == PINNOTFOUND || m_e == PKGNODECL
|| m_e == PROCASSWIRE // Says IEEE
|| m_e == ZERODLY);
);
}
// Warnings to mention manual
bool mentionManual() const VL_MT_SAFE {
return (m_e == EC_FATALSRC || m_e == SYMRSVDWORD || pretendError());
return (m_e == EC_FATALSRC || m_e == SYMRSVDWORD || m_e == ZERODLY || pretendError());
}
// Warnings that are lint only
bool lintError() const VL_MT_SAFE {

View File

@ -1,5 +1,6 @@
%Error-ZERODLY: t/t_delay_var.v:20:7: Unsupported: #0 delays do not schedule process resumption in the Inactive region
%Warning-ZERODLY: t/t_delay_var.v:20:7: Unsupported: #0 delays do not schedule process resumption in the Inactive region
20 | #0 in = 1'b1;
| ^
... For error description see https://verilator.org/warn/ZERODLY?v=latest
... For warning description see https://verilator.org/warn/ZERODLY?v=latest
... Use "/* verilator lint_off ZERODLY */" and lint_on around source to disable this message.
%Error: Exiting due to

View File

@ -1,5 +1,6 @@
%Error-ZERODLY: t/t_timing_zerodly_unsup.v:12:13: Unsupported: #0 delays do not schedule process resumption in the Inactive region
%Warning-ZERODLY: t/t_timing_zerodly_unsup.v:12:13: Unsupported: #0 delays do not schedule process resumption in the Inactive region
12 | #0 if (v) $finish;
| ^
... For error description see https://verilator.org/warn/ZERODLY?v=latest
... For warning description see https://verilator.org/warn/ZERODLY?v=latest
... Use "/* verilator lint_off ZERODLY */" and lint_on around source to disable this message.
%Error: Exiting due to