Tool to find drivers of nets

S

Steve Taetzsch

Guest
I'm looking for a script to find the drivers of all nets in a gate level netlist.

Can anyone point me to such a tool or script?

Thanks,
Steve
 
Steve Taetzsch schrieb:
I'm looking for a script to find the drivers of all nets in a gate level netlist.

Can anyone point me to such a tool or script?
I've seen one for Synopsis DC on the Doulos website, but I've never used
it. Perhaps it helps you.

<http://www.doulos.com/knowhow/tcltk/examples/find_driver/>

HTH & HAND,
Steff
 
If you're using VerilogXL and NC-Verilog, there is a builtin command to show
drivers.

You can also write a fairly simple PLI to do it as well. Look in
<install_dir>/tools/inca/examples/PLI for examples.

I'm looking for a script to find the drivers of all nets in a gate level
netlist.

Can anyone point me to such a tool or script?

Thanks,
Steve
 
staetzsc@netscape.net (Steve Taetzsch) wrote in message news:<d166757d.0401080815.6200a7a8@posting.google.com>...
I'm looking for a script to find the drivers of all nets in a gate level netlist.

Can anyone point me to such a tool or script?

Thanks,
Steve
If you are using Synopsys DC or Primetime,
you may need something like this small script:

#------------------------------------------------
proc c2l {collection} {
set my_list {}
foreach_in_collection coll_element $collection {
lappend my_list [get_object_name $coll_element]
}
return $my_list
}
#------------------------------------------------
proc unique {bad_list} {
set good_list {}
foreach bad_item $bad_list {
if {[lsearch -exact $good_list $bad_item] < 0} {
lappend good_list $bad_item
}
}
return $good_list
}

#------------------------------------------------
set all_dpins ""
foreach_in_collection net [all_nets] {
set dpins [get_pins [all_connected $net] -filter "@pin_direction == in"]
lappend all_dpins [c2l dpins]
}
set driver_pins [unique $all_dpins]


to get TCL list of all driver pins, and similar script:


set all_dports ""
foreach_in_collection net [all_nets] {
set dports [get_ports [all_connected $net] -filter "@port_direction == in"]
lappend all_dports [c2l dports]
}
set driver_ports [unique $all_dports]


to get TCL list of all driver ports.

PS I just wrote these scripts without testing, but I believe they are working
(at least the algorithm is there)

Regards,
Alexander Gnusin
 
Hi Steve,
If you use NCSIm or Modelsim you have the "driver(s)" command which
you can run on every net. With NC, you could use the "describe" TCL command
and then pass on every net to "drivers" command. Just an idea, not a
complete script :)-

HTH,
Srinivasan
--
Srinivasan Venkataramanan
Senior Verification Engineer, Intel Bangalore, India
Co-Author of: Using PSL/SUGAR for Formal and Dynamic Verification 2nd
Edition,
2004 isbn 0-9705394-6-0, Ben Cohen, Srinivasan & Ajeetha

http://www.noveldv.com
I don't speak for Intel
"Steve Taetzsch" <staetzsc@netscape.net> wrote in message
news:d166757d.0401080815.6200a7a8@posting.google.com...
I'm looking for a script to find the drivers of all nets in a gate level
netlist.

Can anyone point me to such a tool or script?

Thanks,
Steve
 

Welcome to EDABoard.com

Sponsor

Back
Top