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

XST - "ERROR:Xst:1923 - Line has not enough elements for target "

Description

XST exits when the last line of the following code for reading from a file is passed:

while (not endfile (MY_FILE)) loop

readline (MY_FILE, MY_LINE);

read (MY_LINE, MY_DATA);

end loop;

The following error occurs:

"ERROR:Xst:1923 - Line <MY_LINE> has not enough elements for target <MY_DATA>".

Solution

To resolve this issue, recode with the following:

while (not endfile (MY_FILE)) loop

readline (MY_FILE, MY_LINE);

exit when endfile (MY_FILE);

read (MY_LINE, MY_DATA);

end loop;

This issue will be fixed in the future releases of ISE.

AR# 22376
Date Created 09/04/2007
Last Updated 12/15/2012
Status Active
Type General Article