Altera_Forum
Honored Contributor
18 years agoError 10500: Syntax error
Hey guys this is my third VHDL project so forgive me if the answer is obvious:
When I compile my code I get the message Error (10500): VHDL syntax error at ts.vhd(28) near text "/="; expecting "!", or "=>" in reference to this line When (s0)/=lm then in this code LIBRARY IEEE; USE ieee.std_logic_1164.all; Entity ts is PORT ( reset : in std_logic; q, z: out std_logic_vector(2 downto 0)); end ts; Architecture arc of ts is Type st1 is (s0, s1, s2); signal lm: st1; Type st2 is (t0,t1,t2); signal mn: st2; Begin Process (reset) Begin if (reset = '1') then lm <= s0; elsif (reset = '0') then Case lm is When s0 => lm <= s1 after 2000000000 ns; When s1 => lm <= s2 after 1000000000 ns; When s2 => lm <= s0 after 3000000000 ns; End case; Case mn is When (s0)/=lm then mn <= t0; When (s1 or s2)/=lm then mn <= t1 after 1999999999 ns; When t1 => mn <= t2 after 999999999 ns; end case; End If; End Process; With lm Select q <= "110" When s0, "011" When s1, "010" When s2; With mn Select z <= "110" When t0, "011" When t1, "010" When t2; End arc; any ideas?