rohd icon indicating copy to clipboard operation
rohd copied to clipboard

"Default" values for `FiniteStateMachine`s

Open mkorbel1 opened this issue 5 months ago • 0 comments

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 avatar Sep 17 '24 17:09 mkorbel1