AR# 8333

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

描述


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.

解决方案


To work around this problem, replace



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



with



conv_std_logic_vector(NWINDOWS-1, NWINLOG2);
AR# 8333
日期 04/21/2011
状态 Archive
Type 综合文章