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# 9823

3.1i XST - ERROR: (VHP__0814). <path>\<file> Line #. Integer value # is missing in aggregate.

説明

Keywords: generic, integer, value, type, aggregate, VHDL, HDL

Urgency: Standard

General Description:
The following error may be generated if a variable (generic) is not passed properly to a type declaration:

ERROR: (VHP__0814). <path>\<file> Line #. Integer value # is missing in aggregate.

where "value #" is the upper bound of a vector type.

For example:

type array_type_name is array (generic_variable-1 downto 0) of integer;
constant constant_name : array_type_name := (9, 5, 7, 0);

"generic_variable" is being passed into the entity as the integer value of "4".

ソリューション

Using the above example, you can use named association instead of positional association:

constant constant_name : array_type_name := (3=>9, 2=>5, 1=>7, 0=>0);

or you can declare the type without any operators (change the variable accordingly):

type array_type_name is array (generic_variable downto 0) of integer;

NOTE: This problem is resolved in the 4.1i software release.
AR# 9823
作成日 08/01/2000
最終更新日 08/20/2002
ステータス アーカイブ
タイプ 一般