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

Request for new warning when implication-operators used in cover properties #1246

Open
jcurtiss8086 opened this issue Feb 17, 2025 · 1 comment
Labels

Comments

@jcurtiss8086
Copy link

When a property uses an implication-operator, it is considered 'true' if the antecedent does not have a match, e.g. a |-> b

It is a common mistake in RTL that properties/sequences used for assertions are re-used for covers. The cover then trivially passes when a has no match which is almost never the actual intention for the cover.

i.e. instead of a |->b , the cover should generally be a && b
and instead of a |=> b, the cover should generally be a ##1 b

Would it be fairly straight forward to define a new warning that triggers when implication-operators are present in properties or sequences used by covers?

@MikePopoloski
Copy link
Owner

Yes, this seem doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants