Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

SOPC Builder Tutorial

Altera_Forum
Honored Contributor II
1,985 Views

Hi, 

 

Now I'm working with SOPC Builder tutorial and suddenly an error appeared during type the given code (lights.v). I already Add the files and all the *.v files produced by the SOPC Builder to the Quartus II project. Below is the error appeared when I run the codes. 

 

Error (10170): Verilog HDL syntax error at unnamed_inst.v(3) near text "("; expecting ";" 

Error (10839): Verilog HDL error at unnamed_inst.v(2): declaring global objects is a SystemVerilog feature 

 

I hope you guys can highlight what is the problem and how to solve it.  

 

Thank you so much.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
825 Views

What is "unnamed_inst.v"? Perhaps you should post the code the error is pointing to for us to look at...

0 Kudos
Altera_Forum
Honored Contributor II
825 Views

Thank you so much. I already fix that problem. but now there is another error appeared during generate the c code. when I try to build the lights.c there an error appeared 

 

collect2: ld returned 1 exit status 

make: *** [lights.elf] Error 1 

 

Why does this error appeared actually?
0 Kudos
Altera_Forum
Honored Contributor II
825 Views

Just a hunch. Try running NIOS as administrator..

0 Kudos
Altera_Forum
Honored Contributor II
825 Views

Really appreciate for your reply. But its weird because i dont have an option for run as adminstrator in my 'run as' menu.

0 Kudos
Altera_Forum
Honored Contributor II
825 Views

I'm not sure this is privileges related. 

 

What hardware platform are you running this on? Do you have enough memory for the application? 

 

Regards, 

Alex
0 Kudos
Reply