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

XST - ERROR:HDLParsers:164 - file_name Line xx. parse error, Unexpected %s

Description

I receive the following error in XST. Why?

"ERROR:HDLParsers:164 - file_name Line xx. parse error, Unexpected %s"

Solution

This error occurs when there is a syntax error in HDL.

For example:

entity test1 is

Port ( a : in STD_LOGIC;

b : in STD_LOGIC;

c : in STD_LOGIC;

end test1;

The above entity declaration will issue the following error:

ERROR:HDLParsers:164 - "C:/Temp/watchvhd/test.vhd" Line 34. parse error, unexpected END, expecting IDENTIFIER

The reason for the error is Line 33 -> c : in STD_LOGIC; is missing a close bracket.

The following will fix the error:

entity test1 is

Port ( a : in STD_LOGIC;

b : in STD_LOGIC;

c : in STD_LOGIC);

end test1;

The only reason this error occurs is if there is a syntax error.

TIP: Always check the lines preceding the actual line specified by the error message. For example, in the above example, although the error specified by the parser was at line 34, the actual fix had to be made in Line 33.

AR# 31118
Date Created 06/05/2008
Last Updated 12/15/2012
Status Active
Type General Article