UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Voyager
Voyager
10,531 Views
Registered: ‎02-10-2012

Question about recompiling sources in Modelsim for ISE and Vivado Projects

Jump to solution

Hey

 

So when I was running Modelsim from ISE projects , during the simulation if I found something wrong in the test bench , I would just stop the simulaton , change the test bench and re compile only the test bench using the command  vcom -explicit -93 "my_testbench.vhd" and restart it. It would pick up the changes and everything would work as intended.

 

But now when I launch Modelsim from a Vivado project and  do the same , the changes are not picked up in Modelsim. I have to run the entire DO script again which complies all the module sources from scratch and the test bench and finally launches the simulator. This is such a waste of time just to correct a small change in the test bench because the design is huge and there are a lot of modules!

 

Any idea why the changes to the test bench  are not picked up by just re compiling the test bench ?

 

Modesim version : 10.2c PE

Vivado : 2014.4

Windows 7

 

Cheers

Arvind

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Instructor
Instructor
19,125 Views
Registered: ‎08-14-2007

Re: Question about recompiling sources in Modelsim for ISE and Vivado Projects

Jump to solution

Did you check the vcom line in the DO file to see if it needs different arguments?  It may be that your command-line recompile is not going into the library you are running the simulation from.  When I use Modelsim I typically go to the Library tab, find the file I just changed in the work library, right-click --> recompile.  A caveat, I am not using Vivado.  However this method should work in any case.  If that works but the command line doesn't, I'd have to suspect that your re-compiled test bench is not ending up in the right library.

-- Gabor
3 Replies
Instructor
Instructor
19,126 Views
Registered: ‎08-14-2007

Re: Question about recompiling sources in Modelsim for ISE and Vivado Projects

Jump to solution

Did you check the vcom line in the DO file to see if it needs different arguments?  It may be that your command-line recompile is not going into the library you are running the simulation from.  When I use Modelsim I typically go to the Library tab, find the file I just changed in the work library, right-click --> recompile.  A caveat, I am not using Vivado.  However this method should work in any case.  If that works but the command line doesn't, I'd have to suspect that your re-compiled test bench is not ending up in the right library.

-- Gabor
Xilinx Employee
Xilinx Employee
10,449 Views
Registered: ‎07-16-2008

Re: Question about recompiling sources in Modelsim for ISE and Vivado Projects

Jump to solution

If you launch Modelsim from Vivado, the DO scripts for "compile", "elaborate" and "simulate" steps will be executed in a front-to-end way. That means all the compilation will be re-run even if the sources are not changed.

 

If you want to just compile the updated testbench, you may have the tool "Generate Scripts only" and manipulate the command in Modelsim console.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Voyager
Voyager
10,440 Views
Registered: ‎02-10-2012

Re: Question about recompiling sources in Modelsim for ISE and Vivado Projects

Jump to solution
Hey

Thanks Gabor. Your suggestion was exactly correct. Turns out that in vivado the default library is not work but rather something called xil_defaultlib. So every time I recompiled , I was compiling the sources in the wrong library. So I did exactly as you suggested and just went to the lib tab and only then I found that the sources were in the xil_defaultlib tab. So just recompiled it from there and restarted the simulation. Everything works fine. :)

Cheers
0 Kudos