Verification Guild
A Community of Verification Professionals

 Create an AccountHome | Calendar | Downloads | FAQ | Links | Site Admin | Your Account  

Login
Nickname

Password

Security Code: Security Code
Type Security Code
BACKWARD

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Modules
· Home
· Downloads
· FAQ
· Feedback
· Recommend Us
· Web Links
· Your Account

Advertising

Who's Online
There are currently, 71 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

  
Verification Guild: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile  ProfileDigest    Log inLog in 

Where best to specify which waveforms to gather?

 
Post new topic   Reply to topic    Verification Guild Forum Index -> Main
View previous topic :: View next topic  
Author Message
ljepson
Senior
Senior


Joined: Jan 29, 2006
Posts: 24
Location: Mtn. View, CA

PostPosted: Wed Mar 09, 2011 2:21 pm    Post subject: Where best to specify which waveforms to gather? Reply with quote

I am taking a poll here and looking for suggestions.

Where do you specify which modules you'll collect waveforms from?

i.e. $recordvars(), $dumpvars()


Currently it is being done in the toplevel module of the testbench I work on.

To capture the waves from the modules I want and to avoid doing so from some big ones that I don't want, I am about to greatly grow the number of lines I currently deal with. (see below for the starting point.) I'd like to stuff these lines of code away in another file, but thought I'd check with all the systemverilog gurus to know if they have any clean suggestions of where best to do this.


The reason the number of lines I have will grow....
I am using Cadence currently and see that there is not yet a way to use dumpvars to exclude modules/signals from being gathered. (I just got a reply from sourcelink.)


http://www.eda.org/svdb/bug_view_page.php?bug_id=0001032



>>>>>>>>>

// /////////////////////////////////////////////////////////////////////
initial begin
`ifdef DUMP_NC_WAVES
`ifdef DUMP_TIME_ZERO
`else
wait(`TOP.pcie_init_done);
//wait(`TOP.my_top.my_core.my_unit.my_a.quarts_svalid);
//wait(`TOP.tc.got_3reply);
//wait(`TOP.tc.got_3ack);
`endif
$display("%t %m: dumping for NcVerilog", $time);
`ifdef FPGA
$recordfile("my_fpga.trn");
`else
$recordfile("my_asic.trn");
`endif
$recordvars("depth=0", `TOP);
//$recordvars("depth=0", `TOP.my_top);
//$recordvars("depth=0", `TOP);
// $recordvars("depth=6", `TOP.my_top.my_core);
`elsif DUMP_VCD_WAVES
$display("%t %m: dumping vcd format", $time);
$dumpfile("my.vcd");
$dumpvars(0,`TOP);
`else
$display("%t %m: no dumping enabled",$time);
`endif
`ifdef VERDI
$display("%t %m: dumping my.fsdb file for Verdi", $time);
$fsdbDumpfile("my.fsdb");
$fsdbDumpvars(0, `TOP.my_top.my_core);
`endif
end
Back to top
View user's profile
alexg
Senior
Senior


Joined: Jan 07, 2004
Posts: 586
Location: Ottawa

PostPosted: Wed Mar 09, 2011 5:36 pm    Post subject: Reply with quote

Probably, the most convenient way is using TCL files.

Here is an example :

http://www.edaboard.com/thread58573.html

-Alex
Back to top
View user's profile Send e-mail
ljepson
Senior
Senior


Joined: Jan 29, 2006
Posts: 24
Location: Mtn. View, CA

PostPosted: Wed Mar 09, 2011 6:12 pm    Post subject: Reply with quote

Thanks, AlexG. We are using the "irun" flow, so I'll see if there is a way to tie a tcl script into that flow.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Verification Guild Forum Index -> Main All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Verification Guild ? 2006 Janick Bergeron
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.117 Seconds