Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21335 Discussions

simulation with modelsim after quartus II vhdl design

Altera_Forum
Honored Contributor II
1,477 Views

Hi, 

 

I have been wanting to verify the correct operation of my vhdl design file in quartus II (to be used on a caen v1495 VME board).  

I have succesfully compiled the quartus II project with the vhdl files. and then I clicked on the "RTL simulation" button to launch the modelsim software.  

I then simulated my current work directory and design file. After which I added 2 input signals that are required to produce an output. However how do I view or add the resultant output waveform to the wave window, so that I can test for the correct logic operations given the inputs and outputs. 

Thanks in advance. 

 

Kind regards.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
594 Views

 

--- Quote Start ---  

 

However how do I view or add the resultant output waveform to the wave window, so that I can test for the correct logic operations given the inputs and outputs. 

Thanks in advance. 

 

--- Quote End ---  

 

 

At the Modelsim console, after you have loaded the simulation, you can type  

add wave *  

to populate the wave window with the signals in your top-level testbench. You can then drag additional signals from the "Objects" window. Using the wave window GUI, you can right-click and set the radix of your signals (decimal, hex, unsigned, etc), add dividers and name groups of signals. Once you're happy with what you see, save the wave window, eg., I use the same base-name as the testbench, eg., for test_tb.vhd I'd save the wave file as test_tb.do. Next time you run the simulation you can type ... 

 

vsim test_tb do test_tb.do run -a  

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
594 Views

Hi Dave, 

 

I think my problem is that when I drag and drop the output signals into the waveform viewing window it says - no data -. Perhaps I am missing some fundamental link between the inputs and the outputs. 

I have attached a zip file with my project, coin_reference is the main file which is adapted from caen's reference design for the v1495.
0 Kudos
Altera_Forum
Honored Contributor II
594 Views

 

--- Quote Start ---  

 

when I drag and drop the output signals into the waveform viewing window it says - no data 

 

--- Quote End ---  

 

That is to be expected. There is no data until you run the simulation, eg., using run -a to run it "all", or run 10 us to run for a specified time. 

 

Try that, if it does not work, I'll take a look at your zip file. 

 

Cheers, 

Dave
0 Kudos
Reply