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 ✌️
Is this $floor() operation needed?
RegWidthandCfg.IndexLengthare defined asunsigned int, and the SV compiler automatically truncates fractional parts in integer divisions toward zero.The explicit
$floor()casts the ratioRegWidth/Cfg.IndexLengthfrom integer to real, becoming thus signed. Synopsys raises an internal compiler error due to this.Thanks ✌️