intel / intel/rohd

Enable math operations on different width inputs

Open
#108 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
489
Forks
88
Avg merge
3d 23h
Merged PRs (30d)
10

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.