Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

SOPC Builder Tutorial

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.

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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