AR# 8333

3.1i XST - ERROR: (VHP__0854). The expression can not be converted to type std_logic_vector.

Description


General Description:

XST will generate an error when it encounters an UNSIGNED to STD_LOGIC_VECTOR conversion.



For example:

std_logic_vector(conv_unsigned(NWINDOWS-1, NWINLOG2));



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

Solution


To work around this problem, replace



std_logic_vector(conv_unsigned(NWINDOWS-1, NWINLOG2));



with



conv_std_logic_vector(NWINDOWS-1, NWINLOG2);
AR# 8333
Date 04/21/2011
Status Archive
Type General Article