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

[Issue-104] checks to prevent same conditional used multiple times #227

Conversation

quekyj
Copy link
Contributor

@quekyj quekyj commented Dec 16, 2022

Description & Motivation

If someone uses the same Conditional object multiple times in the same _Always or in different _Always blocks, it can cause unexpected behavior and simulation/synthesis mismatches.

Related Issue(s)

Fix #104

Testing

Make sure an exception is thrown when conditionals are reuse.

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

no

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

no

@quekyj quekyj changed the title 104 checks to prevent same conditional used multiple times [Issue-104] checks to prevent same conditional used multiple times Dec 16, 2022
Copy link
Contributor

@mkorbel1 mkorbel1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just one question

test/conditionals_test.dart Show resolved Hide resolved
@quekyj quekyj requested a review from mkorbel1 December 20, 2022 01:54
Copy link
Contributor

@mkorbel1 mkorbel1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mkorbel1 mkorbel1 merged commit ea3ceba into intel:main Jan 4, 2023
@quekyj quekyj deleted the 104-checks-to-prevent-same-conditional-used-multiple-times branch February 22, 2023 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add checks to prevent the same Conditional from being used multiple times
2 participants