FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-20-2004, 11:30 PM
FGreen
Guest
 
Posts: n/a
Default Modelsim wave viewing in batch mode

I'm rather new at Modelsim, so please bear with me.
Couldn't find answer to these questions, in manual or in search.

I'm running simulation in batch mode. (Currently just using command
window,
will migrate to Cygwin later.) My batch file is something like this:

vlog -lint tb_test.v
vsim -c tb_test -wlf test.wlf < test.do

So, the simulation runs fine, spits messages, etc.

When viewing the waveform, what's the best way to bring up the waves,
with
the pre-selected signals (or not) without having to open the main
Modelsim
windows?

I find it tedious to open the main window, open the waves, select
dataset, then format, especially because I'm in debugging stage where
I change the testbench a lot. There has to be a better way than
having to go through a series of mouse clicks. I can tolerate the
main window opening, as long as I can have the waves show up with
signals loaded... am I making sense?

Any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 09-21-2004, 05:45 AM
Squirrel
Guest
 
Posts: n/a
Default Re: Modelsim wave viewing in batch mode

Here's one way to do it in "interactive" batch mode. On the first run out
of the chute, I'll add start the waveform viewer, and add all the signals I
want to see, format them, etc.

Then, do a File->Save->Format
Save the "wave.do" file.

Next, make a *.do file similar to below

---------Start of do file ----------
vlog -f file_collection.f
vsim work.Test

view wave #opens the wave viewer
do C:/Projects/wave.do #loads the signals you want to see

run -all #execute full sim
--------- End of do file ----------

Because you're using the sim in interactive mode, you'll need to do is issue
a "$stop" in your testbench instead of the "$finish"

Then, in the modelsim window, just execute >> do myfile.do

SM

"FGreen" <[email protected]> wrote in message
news:[email protected] om...
> I'm rather new at Modelsim, so please bear with me.
> Couldn't find answer to these questions, in manual or in search.
>
> I'm running simulation in batch mode. (Currently just using command
> window,
> will migrate to Cygwin later.) My batch file is something like this:
>
> vlog -lint tb_test.v
> vsim -c tb_test -wlf test.wlf < test.do
>
> So, the simulation runs fine, spits messages, etc.
>
> When viewing the waveform, what's the best way to bring up the waves,
> with
> the pre-selected signals (or not) without having to open the main
> Modelsim
> windows?
>
> I find it tedious to open the main window, open the waves, select
> dataset, then format, especially because I'm in debugging stage where
> I change the testbench a lot. There has to be a better way than
> having to go through a series of mouse clicks. I can tolerate the
> main window opening, as long as I can have the waves show up with
> signals loaded... am I making sense?
>
> Any help would be appreciated.



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modelsim simulation progress in batch/command line mode? Andreas Ehliar Verilog 6 04-26-2007 07:05 PM
-mapstyle option in BATCH mode operation of XST Varun Jindal FPGA 0 06-23-2004 05:16 PM
-mapstyle option in BATCH mode operation of XST Varun FPGA 0 06-23-2004 04:00 PM
Modelsim 5.8 corrupt call stack when adding signals to wave window. Marcus Svensson FPGA 2 12-03-2003 07:13 PM


All times are GMT +1. The time now is 05:37 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved