Problem with integer a vector range
Integer is an Integer Variable
OutputNumber is an Std_logic_Vector Input
Integer <= conv_integer(OutputNumber);
MyVector(37 downto (38-Integer)) <= Temp(37 downto (38-Integer));
Error (10454): VHDL syntax error: right bound of range must be a constant
PLEASE HELP ME.
I think, it is not possible to code like this way. Dynamic bus assignment while hardware is running doesn't seems to be a right way.
Since you are assigning the values base on user input,you are getting this error message and also if your integer value is zero, myvector value becomes (37 downto 38) which can't be done.
Re-think your logic keeping programing for hardware in mind.
If the integer value is constant or generic, this can be done.
|All times are GMT. The time now is 04:58 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.