Skip to content

Mechanism to warn about integer truncation in constants #142

@mkorbel1

Description

@mkorbel1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions