- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you're missing a ')' in line 210.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
oh wow, should have spotted that. Thank alot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
While we're here though, Im a bit concerned you're using a data output as a clock . You should not use logic as clocks. You should only ever use clocks and use the logic as a clock enable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yea I've had to change that, the information is only passed to G_DOUT(0) at the very end now, when there is nothing else to perform.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page