Replies: 2 comments 11 replies
-
There is currently no way to filter the error (by definition, errors cannot be filtered out). Typically tool-specific code is hidden behind an ifdef so that it can still be run through other tools, but you may have good reasons for not wanting to do that. I could change the error to be a warning that is by default promoted to an error; that would allow you to demote it back down to a warning or ignore it using typical warning options. Errors do not in general mask all warnings, but slang does avoid issuing warnings when there are errors that could make such warnings ambiguous and therefore unhelpful noise. In particular if there are any errors slang won't check for unused nets and variables because it's often the case that such warnings are just nonsensical when there are real errors in the code. |
Beta Was this translation helpful? Give feedback.
-
I discovered that slang doesn't detect a lack of `define unknownSys(handle) \
`ifdef __slang__\
`pragma diagnostic handle="-Wunknown-sys-name" I can submit this as a separate issue/discussion if preferred. |
Beta Was this translation helpful? Give feedback.
-
If I have the following code in
test.sv
:and I run
slang -Weverything test.sv
I receive the following error:Given that
$initstate
is not in the LRM, the error is valid.$initstate
is provided by sby and used as part of formal verification.I had two questions:
Is it possible to filter this error? I found a warning reference in the docs and methods for filtering warnings, but couldn't find anything about filtering errors.
Are errors supposed to mask warnings? In the above example I have an
unused-net
andunused-variable
warning that are masked unless I comment out the conditional containing$initstate
.Beta Was this translation helpful? Give feedback.
All reactions