Forum Discussion

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

Nios ii ide

Hello all,

I am new to Cyclone II and NIOS II as well. This is entirely new territory that I just entered. I am looking for a best example that could take me through the Quartus II, SOPC builder and then into NIOS II IDE. I encountered one example regarding a calculator but it doesn't give me a clear idea.

All the examples that I came across on Altera seem to be jumping hoops and I l lose my track somewhere. Can you guys suggest a good example? All I want to do is build a NIOS II processor on Cyclone II and then put a simple C program on it to see if it works.

Thanks in advance !!

3 Replies

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

    I found a link to a simple program that I could use:

    johnloomis DOT org/ece449/labs/nios2lab1/nios2lab1 DOT html

    But in here...there is a step that I dont understand.

    ....add these verilog files and those generated by the sopc tool into the project and make nios2lab.v the top-level module. check the module name and parameter list generated by sopc with the values assumed in nios2lab.v. edit the file nios2lab.v, if necessary, to agree with the names assigned by the sopc tool.

    How do I make nios2lab.v the top-level module and what exactly are the files generated by the SOPC? Are these the files in .sopc_builder? Or are they everything in that main folder? Please clear this for me.

    FYI: I successfully generated the SOPC file prior to this step.

    any help is greatly appreciated. thank you.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Once you've added the nios2lab.v to your project, you can right-click it in the files list and there is an option to set it as the top level file.

    To include the files generated by SOPC builder, IIRC SOPC builder creates a file with a .qip extension that tells Quartus what files to include. You should just need to add this one to your Quartus project, and it should have already been done automatically when you generated the system in SOPC builder.