Skip to content

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

Open
@cdleary

Description

@cdleary

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dslxDSLX (domain specific language) implementation / front-end

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions