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

Fix bug where FSM may cause inferred latch #390

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

mkorbel1
Copy link
Contributor

Description & Motivation

Even though the FSM should never allow the case statement to reach an invalid state, synthesis tools may still infer a latch for receivers in the actions which are not assigned in the default case. This PR fixes this issue by zeroing out all receivers mentioned in any actions in the default, even though it should never happen.

Related Issue(s)

N/A

Testing

Added a test that the zero-out happens.

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

@mkorbel1 mkorbel1 merged commit 7dab293 into intel:main Jun 29, 2023
@mkorbel1 mkorbel1 deleted the fsm_default_nolatch branch June 29, 2023 20:24
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.

1 participant