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

"Default" values for FiniteStateMachines #509

Open
mkorbel1 opened this issue Sep 17, 2024 · 0 comments
Open

"Default" values for FiniteStateMachines #509

mkorbel1 opened this issue Sep 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mkorbel1
Copy link
Contributor

Motivation

Often there is a "default" value that would be desirable for most states in a FiniteStateMachine, but the current implementation requires repeating the same default across all states in order to avoid an inferred latch.

Desired solution

Upgrade the FiniteStateMachine API to support some way to add defaults.

This could easily be done by inserting conditional assignments (since they act as "blocking") before the rest of the combinational implementation in the Combinational that it generates.

Alternatives considered

No response

Additional details

No response

@mkorbel1 mkorbel1 added the enhancement New feature or request label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant