Skip to content

Unsigned to signed conversion due to $floor(). #12

@yvantor

Description

@yvantor

Is this $floor() operation needed? RegWidth and Cfg.IndexLength are defined as unsigned int, and the SV compiler automatically truncates fractional parts in integer divisions toward zero.
The explicit $floor() casts the ratio RegWidth/Cfg.IndexLength from integer to real, becoming thus signed. Synopsys raises an internal compiler error due to this.
Thanks ✌️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions