Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DSLX] assert! and fail! labels can clash in generated verilog (leading to e.g. elab warnings) #1937

Open
cdleary opened this issue Feb 17, 2025 · 0 comments
Labels
dslx DSLX (domain specific language) implementation / front-end

Comments

@cdleary
Copy link
Collaborator

cdleary commented Feb 17, 2025

Describe the bug
If you use the same label for a fail! and an assert! 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.

@cdleary cdleary added the dslx DSLX (domain specific language) implementation / front-end label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dslx DSLX (domain specific language) implementation / front-end
Projects
Status: No status
Development

No branches or pull requests

1 participant