Forum Discussion
Altera_Forum
Honored Contributor
15 years agoError (10170): Verilog HDL syntax error at nios_system_inst.v
Hello all,
I got the following error while trying the Introduction to the Altera SOPC Builder Using Verilog Design SOPC Tutorial. I'm using Quartus II 10.0 . I'm lost on figuring it out. Error (10170): Verilog HDL syntax error at nios_system_inst.v(2) near text "("; expecting ";", or "," Here is the SOPC auto generated code: //Example instantiation for system 'nios_system' nios_system nios_system_inst ( .clk_0 (clk_0), .in_port_to_the_Switches (in_port_to_the_Switches), .out_port_from_the_LEDs (out_port_from_the_LEDs), .reset_n (reset_n) ); Can anyone assist please, because I am stumped. Thanks in advance,5 Replies
- Altera_Forum
Honored Contributor
I can't see anything wrong with syntax. I am only not sure about where the error is since it says it is located at nios_system_inst.v and this may not mean the code you are showing. I wonder why the file name is same as instant name.
- Altera_Forum
Honored Contributor
the _inst.v is just an example Verilog instance. you'll need to drop it into a module and port map it
- Altera_Forum
Honored Contributor
Thank u for replying me..
That was not a code written by me. it was generated by the SOPC.I done it according to the tutorial. But it didnt compile...... - Altera_Forum
Honored Contributor
I'm getting the same error as mentioned here. Couldn't find any syntactical error in the code. Moreover, it is a Quartus auto-generated code which is not running in Quartus :confused: :rolleyes:. Please help me compile this.
- Altera_Forum
Honored Contributor
Please do not multipost, it won't get you more answers.
Regarding the error, as already said in the thread an *_inst.v file is just an instantiation example and shouldn't be compiled as is in a project. Remove the file from the project and copy/paste its contents in a top level file if necessary.