Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
VHDL
Case choice must be a locally static expression
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Peter, post: 4187043"] But it seems as constants in a package are allowed in a case-choice, as long as I dont use the "to_unsigned" function? Constant MASKREG : unsigned(5 downto 0):= "000000"; -- Gives no warning Constant MASKREG : unsigned(5 downto 0):= To_unsigned(0,6); -- Does The package is compiled first. Why is the compiler unable to know the value of the constant just because it was set by a function? And I tried to move the declaration into the architecture where it is used. It gives the same warning. Thanks gentlemen for Your interest, Peter [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
VHDL
Case choice must be a locally static expression
Top