[DSLX] assert!
and fail!
labels can clash in generated verilog (leading to e.g. elab warnings)
#1937
Labels
dslx
DSLX (domain specific language) implementation / front-end
Describe the bug
If you use the same label for a
fail!
and anassert!
they can clash as asserted property labels in the generated sv, which can lead to things like elab warnings, where we probably want to give an early error.To Reproduce
assert!(something, "my_name");
fail!("my_name", default_value);
Expected behavior
Probably flagging that the label is being reused in the function scope.
The text was updated successfully, but these errors were encountered: