- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
what is the meaning (and reason) of syntax error: 10170 Verilog HDL syntax error at lights.v(6) near text ";"; expecting a description (line 6 is the "endmodule"; using 13.01 Quartus; I am using a sample code from a book; as far as I could check, the syntax is correct) Thanks in advance
module clk_gen;
reg clk;
initial clk = 1'b0;
always# 10 clk = ~clk;
initial# 60 $finish;
endmodule;
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
endmodule should not have a semicolon (;) at the end
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- endmodule should not have a semicolon (;) at the end --- Quote End --- Thank you, really. (BTW: I think an empty instruction should be tolerated, and the error message could be more informative). I have, however, more problems. About line, containing '$finish', the compiler gives the warning "ignoring unsupported system task". (As far as I know, $finish should be supported) The bigger problem is the error the compiler reports: "Can't synthetise current design -- Top partition does not contain any logic" Which is absolutlely true. But, I did not want to synthetise, just to simulate and show the waveform. Is there any setting that allows to to that? And in general, shall I change some setting to compile ONLY for simulation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Thank you, really. (BTW: I think an empty instruction should be tolerated, and the error message could be more informative). --- Quote End --- FYI, moving to SystemVerilog will allow the null statement.

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