-
Notifications
You must be signed in to change notification settings - Fork 348
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
ieee.ceil() is not locally static #2660
Comments
Correct. But this is according to lrm 1076-2008. Only the operations defined in STD_LOGIC_1164, NUMERIC_BIT, |
@tgingold is there any technical reason why it's limited to a handful of named builtin packages? ... and why I wanted to get rid of this list in VHDL-2019, but it was rejected. Currently, any user defined package has this problem, that user defined operations are excluded from some use cases. |
Yes, some of them would be useful, but:
|
That one is easy at least - it's a compile error just like static assertions in many other languages. A very useful feature to have. |
Even at |
But the definition would be consistent within the same tool and from call to call. The missing consistency is more a problem of portability, right? |
@Paebbels I don't think there is any warranty on the consistency. |
Description
The ieee.ceil() function is not locally static thus it cannot be used in the condition of of case statement.
Expected behaviour
To be able to use the function to manipulate constants for use in case statement conditions.
How to reproduce?
MWE is provided
Context
Compiled with GNAT Version: 13.2.0
llvm 18.1.4 code generator
Written by Tristan Gingold.
Copyright (C) 2003 - 2024 Tristan Gingold.
GHDL is free software, covered by the GNU General Public License. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The text was updated successfully, but these errors were encountered: