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

Enable math operations on different width inputs #108

Open
mkorbel1 opened this issue Mar 29, 2022 · 1 comment
Open

Enable math operations on different width inputs #108

mkorbel1 opened this issue Mar 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@mkorbel1
Copy link
Contributor

Motivation

It would be nice to provide a mechanism to do math on signals/values of different widths when it is unambiguous. It's also potentially useful to have a larger output than either input.

Desired solution

There might be some scenarios where behavior can be safely inferred with just the operator and no additional inputs. In other cases, perhaps a special operator or function is required to enable users to explicitly handle width ambiguity.

Alternatives considered

Many operations always require exact width matching (as it is currently), meaning people should pad their values before performing the operation.

Additional details

SystemVerilog has features like this, though some may be a little dangerous.

@mkorbel1 mkorbel1 added the enhancement New feature or request label Mar 29, 2022
@mkorbel1
Copy link
Contributor Author

mkorbel1 commented Feb 5, 2025

Probably related: intel/rohd-hcl#140

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