AR# 10783

3.1i XST - ERROR: (VHDL_0056). file_name.vhd (Line #). Unexpected value. Unable to derive it to an integer.

描述

Keywords: generic, integer, constant, array

Urgency: Standard

General Description:
XST will incorrectly process an array of constants when an index of the array is a generic.

For example:

generic (loc_x ... : INTEGER := 0;);
...
regoutA: FDBUS GENERIC MAP (... loc_x => pos_ram_mul_x(loc_x), ...);

will generate the error:

ERROR: (VHDL_0056). file_name.vhd (Line 90). Unexpected value. Unable to derive it to an integer.

NOTE: This problem is fixed in the 4.1i software release.

解决方案

The work-around is to add "+0":

regoutA: FDBUS GENERIC MAP (... loc_x => pos_ram_mul_x(loc_x) + 0, ...);
AR# 10783
日期 08/19/2002
状态 Archive
Type 综合文章