Wrong evaluation of unsized constant when used in operation with sized constant #3979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8000
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test:
Executing Surelog with
-parse -elabuhdm
gives following tree:According to standard (11.6.1 Rules for expression bit lengths) such expression should have max size of both operands, where size of unsized constant should equal to size of integer.
In
uhdmallModules
,'hff
is unsized (|vpiSize:-1
), but inuhdmtopModules
it have size|vpiSize:10
instead of size of integer (in case of Surelog, I think it should be 64)The text was updated successfully, but these errors were encountered: