Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- I added FSN a nearby the end of sopc_system.v --- Quote End --- This is a *generated* file. To add to this file you should create an SOPC component and add it via the GUI, otherwise your edits will be erased when you 'regenerate' the SOPC System. As I commented above, if you want to add a component that has nothing to do with the SOPC system, add it to the top-level design file. --- Quote Start --- But when I try to run simulation i get error:** Error: (vsim-3033) ../sopc_system.v(4691): Instantiation of 'cross_clk' failed. The design unit was not found. I have no idea how am i suppose to add file cross_clk.v to simulation library. --- Quote End --- Look at the scripts synth.tcl and sim.tcl. These scripts contain the commands to include the source files for Quartus and Modelsim. If you change the HDL, then edit these scripts to add your new files to the list. Let me know if you need more detailed instructions. Cheers, Dave