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: 
Newbie omar_1217
Newbie
162 Views
Registered: ‎08-09-2019

ERROR:HDLParsers:164 - parse error, unexpected TICK

The line in bold present me with an error: ERROR:HDLParsers:164 - parse error, unexpected TICK

what is it? How do i solve it?

 

 

entity LAB1 is
Port ( D0 : in STD_LOGIC;
D1 : in STD_LOGIC;
D2 : in STD_LOGIC;
D3 : in STD_LOGIC;
D4 : in STD_LOGIC;
D5 : in STD_LOGIC;
D6 : in STD_LOGIC;
D7 : in STD_LOGIC;
EN : in STD_LOGIC;
S1 : in STD_LOGIC_VECTOR (2 downto 0);
Y : out STD_LOGIC);
end LAB1;

architecture Behavioral of LAB1 is

begin

process (S1)

begin

if (EN = '0') & (S1 = '000') then Y <= D0;
elsif (EN = '1') & (S1 = '001') then Y <= D1;
elsif (EN = '1') & (S1 = '010') then Y <= D2;
elsif (EN = '1') & (S1 = '011') then Y <= D3;
elsif (EN = '1') & (S1 = '100') then Y <= D4;
elsif (EN = '1') & (S1 = '101') then Y <= D5;
elsif (EN = '1') & (S1 = '110') then Y <= D6;
elsif (EN = '1') & (S1 = '111') then Y <= D7;
else Y <= '0';
end if;

end process;

end Behavioral;

LAB1.jpg
0 Kudos
1 Reply
Highlighted
Observer antonin_fpga
Observer
97 Views
Registered: ‎04-19-2019

Re: ERROR:HDLParsers:164 - parse error, unexpected TICK

Hi,

S1 is a vector so should be like this : (S1 = "000")  with " instead of '

Antonin