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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant multan07
Participant
1,087 Views
Registered: ‎03-06-2017

ERROR:HDLCompiler:849 - "module.vhd" Line last: Unexpected EOF.

Jump to solution

Hello Experts,

 

I have a project of several modules. I have created two new VHDL Module (HMB_TX_TEST  and HMB_RX_TEST   and added them both in Top Module. But, I do not find the added modules included to Top Module (Photo Attached).

 

My Top Module has component and instantiation declaration for these two module. Still these two modules are not found under top Module (Please see attached photo). 

My Component Declaration:

 

component HMB_TX_TEST
port
(
USER_CLK : in STD_LOGIC;
START_OPERATION : in STD_LOGIC;
MMC_DATA_TX : out STD_LOGIC_VECTOR (7 downto 0)
);
end component;

 


component HMB_RX_TEST
port
(
USER_CLK : in STD_LOGIC;
START_OPERATION : in std_logic;
MMC_Data_Rx : in STD_LOGIC_VECTOR (7 downto 0);
RX0_CHAR_IS_K : in std_logic
);
end component;

 

 

My Instantiation Declaration:

 

hmb_tx_test_i : HMB_TX_TEST
port map
(
USER_CLK => usr_clk2_i,
START_OPERATION => start_operation_i,
MMC_DATA_TX => MMC_Tx_Data_i
);

 

 

hmb_rx_test_i : HMB_RX_TEST
port map
(
USER_CLK => usr_clk2_i,
START_OPERATION => start_operation_i,
MMC_Data_Rx => mgt0_rxdata_i,
RX0_CHAR_IS_K => mgt0_rxcharisk_i
);

 

Could anyone please help me to solve the issue? I appreciate your concern and assistance. Thanks in Advance.

 

 

ProjectRing.jpg
EOF ERROR.jpg
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
1,160 Views
Registered: ‎05-31-2017

Re: ERROR:HDLCompiler:849 - "module.vhd" Line last: Unexpected EOF.

Jump to solution

Hi @multan07,

 

This might be due to the syntax errors in the hmb_rx_test.vhd and hmb_tx_test.vhd files. You can check whether you have ended the architecture with a semicolon or not. If you have used the semicolon at the end of architecture and still facing this issue, I would suggest you to share both the .vhd files to check the possible scenario of syntax error

View solution in original post

5 Replies
Moderator
Moderator
1,161 Views
Registered: ‎05-31-2017

Re: ERROR:HDLCompiler:849 - "module.vhd" Line last: Unexpected EOF.

Jump to solution

Hi @multan07,

 

This might be due to the syntax errors in the hmb_rx_test.vhd and hmb_tx_test.vhd files. You can check whether you have ended the architecture with a semicolon or not. If you have used the semicolon at the end of architecture and still facing this issue, I would suggest you to share both the .vhd files to check the possible scenario of syntax error

View solution in original post

Moderator
Moderator
1,052 Views
Registered: ‎11-04-2010

Re: ERROR:HDLCompiler:849 - "module.vhd" Line last: Unexpected EOF.

Jump to solution

Hi, @multan07 ,

What's the content of  hmb_tx_test.vhd and hmb_rx_test.vhd ?

You can try to synthesize above file as a top and check whether all the "begin" has a related "end XX" in the above 2 files.

 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Participant multan07
Participant
1,029 Views
Registered: ‎03-06-2017

Re: ERROR:HDLCompiler:849 - "module.vhd" Line last: Unexpected EOF.

Jump to solution

Hi @shameera,

 

I have found the issue, though my  "synopsys translate_off" was commented in the code, yet it was affecting the EOF.  So, I had to add "synopsys translate_on". It fixed the problem. Now, I see both module included with Top one.

 

Thanks for your response. 

0 Kudos
Participant multan07
Participant
1,027 Views
Registered: ‎03-06-2017

Re: ERROR:HDLCompiler:849 - "module.vhd" Line last: Unexpected EOF.

Jump to solution

Hi @hongh,

 

I have found the issue, though my  "synopsys translate_off" was commented in the code, yet it was affecting the EOF.  So, I had to add "synopsys translate_on". It fixed the problem. Now, I see both module included with Top one.

 

Thanks for your response. 

0 Kudos
Moderator
Moderator
1,019 Views
Registered: ‎11-04-2010

Re: ERROR:HDLCompiler:849 - "module.vhd" Line last: Unexpected EOF.

Jump to solution

Hi, @multan07 ,

It's great to know the problem is resolved.

PS: You can @ me and shameera in the same post instead of post same content twice. Thanks

 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos