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.