finding all X's with NC

C

Chris Briggs

Guest
I want to find all the regs and outputs in a design that aren't
initialized during reset. What's the easiest way to do this? I use
NC-Verilog to simulate and I was hoping there was a TCL command to do
it but none of the ones that give values (describe and value) can go
through the hierarchy. Is there a way to iterate through it?

Worst case, I can dump to a VCD file and write a script to parse it,
but I'm hoping for an easier way. Anybody have one?

Thanks.

-cb
 
Probably, the easiest way to achieve your goal is to use Chris Spear's
$findx PLI:
http://chris.spear.net/pli/findx.htm

It comes with vcs .tab file and runfile, but it may be easily
converted to work with NC.


Regards,
Alexander Gnusin
www.TCLforEDA.net
 
On Wed, 01 Oct 2003 08:35:49 -0700, Chris Briggs wrote:

I want to find all the regs and outputs in a design that aren't
initialized during reset. What's the easiest way to do this? I use
NC-Verilog to simulate and I was hoping there was a TCL command to do
it but none of the ones that give values (describe and value) can go
through the hierarchy. Is there a way to iterate through it?

Worst case, I can dump to a VCD file and write a script to parse it,
but I'm hoping for an easier way. Anybody have one?

Thanks.

-cb
Just look for red lines in Simvision.
 
chris@engim.com (Chris Briggs) wrote in message news:<f8e87dac.0310010735.733b3d79@posting.google.com>...

Worst case, I can dump to a VCD file and write a script to parse it,
but I'm hoping for an easier way. Anybody have one?
If you want a quick and dirty solution with VCD, vcd2lxt in gtkwave
will list uninitialized signals if you add -stats at the command line:

25:/tmp> vcd2lxt vcd.dmp /dev/null -stats

Converting VCD File 'vcd.dmp' to LXT file '/dev/null'...

[0] start time.
[121] end time.

[ ] [ 25] benchx.clk
[ ] [ 11] benchx.count[10:0]
[ ] [ 2] benchx.realnum
[*] [ 0] benchx.string
[ ] [ 12] benchx.toggle_01

[5] total facilities: [4] facilities defined, [1] facility undefined.
 
Just look for red lines in Simvision.
The annoyance there is that what I'm trying to do is get a report for
the whole DUT and send it to the designers (I'm the verification guy).
Using Simvision in this manner and having to go through all the levels
of hierarchy and then manually list all the X's would be tedious, to
say the least.

-cb
 
That's kinda cool. I already got a solution (PLI) but now I'm going to
look at gtkwave to see what other nifty things it does.

Thanks.

-cb
 

Welcome to EDABoard.com

Sponsor

Back
Top