- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm making simulations of my project, but every time I simulate and then change something in quartus II vhdl files, I need to close ModelSim to run again the simulation and this means to lose the configuration of signals I'm watching. Is there any way to simulate without lossing the selected watching signals. I want to do this without touching the test bench vhdl file Thanks GuillermoLink Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try these commands in the modelsim command window:
vcom filename.vhd (compile vhdl file)
restart
run (x ns/ -all)
This will recompile the source. When you restart it reloads the recompiled files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
so you are using NativeLink to start an RTL simulation? if so, you can edit the source HDL and re-run the .do script (one way is to push Up in the transcript window until you see the Quartus generated .do file and then push Enter) in ModelSim without going back to Quartus. if you've added signals and re-run the simulation you can also push Up then Enter to re-run those commands. you can do this as long as you haven't added/removed HDL files to your project, if you have you'll need to re-run NativeLink
alternatively you can copy+paste the add wave commands from the transcript window into the Quartus generated .do file, then re-run the .do file using Up then Enter. you can even tell NativeLink to launch ModelSim using your edited script. the downside is that if you add/remove source files you have to add them to your edited .do file yourself, or re-run NativeLink to generate a new .do file, then add your custom wave commands back in i should make an AlteraWiki page with some ModelSim tips- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
I tried what you said but I haven't been able to resimulate without closing modelsim and losing my signal configuration. I tried some other commands and recompiling with modelsim but nothing seems to work. Guillermo- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi again,
For user with same problem, I don't really do what I want but a way for conserve the signals is to save the format and load it every time I make the simulation. I will continue searching for the way to dont need to close modelsim Guillermo- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
have you edited the Quartus generated .do file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
No, I don't modify the .do, but, from modelsim, when I save the format I see that the file is saved with .do extension. I will open it to see what is inside Guillermo
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page