UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 9825

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

Description

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>'

Solution

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
Date Created 08/01/2000
Last Updated 08/20/2002
Status Archive
Type General Article