Altera_Forum
Honored Contributor
11 years ago10500 VHDL syntax error on my counter design.
Hi,
I was wondering if anyone could help me out with solving this error messages. 1 : 10500 VHDL syntax error at coin_reference.vhd(210) near text "then"; expecting ")", or "," 2: 10500 VHDL syntax error at coin_reference.vhd(216) near text "if"; expecting "process". my counter design is (line 207) process(G_DOUT(0)) variable count0 : integer range 0 to 65535; begin if(rising_edge(G_DOUT(0)) then if RESET_CLOCK(0) = '1' then count0 := 0; elsif enable='1' then count0 := count0 + 1; end if; end if; Q0 <= count0; end process; I honestly don't see what is wrong with it.