Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

expecting a description

Altera_Forum
Honored Contributor II
4,340 Views

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;
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
2,303 Views

endmodule should not have a semicolon (;) at the end

0 Kudos
Altera_Forum
Honored Contributor II
2,303 Views

 

--- 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?
0 Kudos
Altera_Forum
Honored Contributor II
2,303 Views

 

--- 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.
0 Kudos
Reply