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/20/2002
状态 Archive
Type 综合文章