intel / intel/rohd

Mechanism to warn about integer truncation in constants

Open
#142 4 comments 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
Dart
Stars
489
Forks
88
Avg merge
3d 23h
Merged PRs (30d)
10

Description

## Motivation
Sometimes one might want to create a `Const` which requires passing an integer, but the integer doesn't "fit" in the specified width of the constant signal. The current behavior is just truncation, meaning the constant value doesn't match the value of the original `int`.

## Desired solution
A warning, error, exception, or something along those lines making it more difficult to accidentally truncate the desired constant value.

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.