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

Support a partial assignment Conditional #378

Open
mkorbel1 opened this issue Jun 5, 2023 · 0 comments
Open

Support a partial assignment Conditional #378

mkorbel1 opened this issue Jun 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mkorbel1
Copy link
Contributor

mkorbel1 commented Jun 5, 2023

Motivation

See #363

It might be nice to assign part of a signal conditionally.

Desired solution

A function on Logic which could do a partial set (maybe similar to withSet) of bits of a signal.

One important thing to consider are new cases that show up with this feature. For example, in a Combinational, if some bits are not assigned, we need to drive them to x to ensure we don't simulate an inferred latch. There could be other tricky things like that.

Generated verilog is controlled by the Conditional so this should be achievable. There may be some tricky business with legal verilog generation for arrays?

Alternatives considered

No response

Additional details

No response

@mkorbel1 mkorbel1 added the enhancement New feature or request label Jun 5, 2023
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