Return to the Products Page
  home
 


Answers Database


3.1i XST - ERROR : (VHDL_0033). <path>\<file> (Line #). Bad Constant Value for Generic '<generic_name>'


Record #9825

Product Family: Software

Product Line: FPGA Implementation

Product Part: XST General

Problem Title:

3.1i XST - ERROR :   (VHDL_0033). <path>\<file> (Line #). Bad Constant Value for Generic
'<generic_name>'



Problem Description:
Urgency: Standard

General Description:
If a value is not declared for constants in user made functions, you may receive the following error:

ERROR : (VHDL_0033). <path>\<file> (Line #). Bad Constant Value for Generic
'<generic_name>'


Solution 1:

For a function declaration like:

    function my_fun ( in_data : std_logic_vector;
                constant width: integer
              ) return std_logic_vector;

notice that there is no value associated with the constant 'width'. Declaring a value will overcome the error in XST:

    function my_fun ( in_data : std_logic_vector;
                constant width: integer:=0
              ) return std_logic_vector;

Any integer that is then passed to the function will over ride the 'initial' value. This problem will be fixed in a future version.




End of Record #9825 - Last Modified: 08/01/00 12:34

For the latest news, design tips, and patch information on the Xilinx design environment, check out the Technical Tips!