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

Width inference on Mux #140

Open
desmonddak opened this issue Nov 15, 2024 · 1 comment
Open

Width inference on Mux #140

desmonddak opened this issue Nov 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@desmonddak
Copy link
Contributor

Motivation

It's frustrating to use the mux and then have to expand the operands to the correct width as a convenience.

Desired solution

mux infers widths properly likely using zeroExtend to match operands to a common width.

Alternatives considered

No response

Additional details

No response

@desmonddak desmonddak added the enhancement New feature or request label Nov 15, 2024
@mkorbel1
Copy link
Contributor

Do you mean zero-extending the smaller of the two data inputs of a mux by default? That seems reasonable to me as well. Should this be filed on https://github.com/intel/rohd instead, or was there something component-specific you had in mind?

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

2 participants