AR# 9825

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

説明

Keywords: XST, VHDL, function, generic, constant, port

Urgency: Standard

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

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

ソリューション

For a function declaration such as:

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 as follows will prevent the XST error:

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 override the "initial" value.

NOTE: This problem is corrected in the 4.1i software release.
AR# 9825
日付 08/20/2002
ステータス アーカイブ
種類 一般