You have to also include the following libraries in the vsim command
vsim -L cycloneiv_hssi -L cycloneiv_hssi_ver -L cycloneiv_pcie_hip -L cycloneiv_pcie_hip_ver - work.....
This will include all of the required device and IP libraries needed for simulation.
Yes, I am using Altera Modelsim.
I have added "-L cycloneiv_hssi -L cycloneiv_hssi_ver -L cycloneiv_pcie_hip -L cycloneiv_pcie_hip_ver" to vsim command:
But once I run the functional simulation in Simulation Waveform Editor, it will overwrite the 'do' file because this file is generated by Simulation Waveform Editor itself:
There is not setting tab in the Simulation Waveform Editor (open from Quartus Prime 15.1).
What can I do so that vsim command cannot be overwritten?
You need to edit the file from within the Waveform editor in Quartus. When you create the input waveforms for the design using the Simulation Waveform Editor, you have to do the following:
- After creating the waveform, Save the file and either rename it or leave the name as it is (Waveform.vwf).
- From the menu, click Simulation -> Simulation Settings.
- In the window that pops-up you have to modify the vwf name (if you have changed the name while saving it) in the "Testbench Generator Command" box. Scroll left and change all instances of the "Waveform.vfw" to the name you have specified earlier while saving it. You can also change the name of the generated .vwf.vt file.
- Under the Modelsim Script box make change the testbench name (*.vwf.vt) .
- In the next line you will see the vsim command. Here include the libraries mentioned earlier. "-L cycloneiv_hssi -L cycloneiv_hssi_ver -L cycloneiv_pcie_hip -L cycloneiv_pcie_hip_ver
- Click Save.
- Now, generate the testbench and the ModelSim simulation scripts.
- Now, everytime you simulate the design, it should include the necessary libs and compile/simulate.
You have to open the Waveform that you created in the Waveform Editor. In this screen the Simulation Settings option will be there under the Simulation menu item.
Which version of Quatus are you using 18.0 / 18.1 Lite/Std?
This is present in the later versions.. 18 and 18.1 , am not sure about 15. Why don't you try upgrading to the latest 18.1 Lite version ? It would solve this issue.