EdbNets#
- class pyedb.dotnet.database.nets.EdbNets(p_edb)#
Bases:
pyedb.common.nets.CommonNetsManages EDB methods for nets management accessible from Edb.nets property.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", edbversion="2021.2") >>> edb_nets = edbapp.nets
Overview#
Return a list of nets calculated by area to be eligible for PWR/Ground net classification. |
|
Get extended net and associated components. |
|
Reassign power/ground or signal nets based on list of nets. |
|
Determine if one of the nets in a list is power or ground. |
|
Get the nets connected to the direct current through inductors. |
|
Retrieve the power tree. |
|
Find a net by name. |
|
Delete one or more nets from EDB. |
|
Delete one or more nets from EDB. |
|
Find or create the net with the given name in the layout. |
|
Check if a net belongs to a component. |
|
Find and fix disjoint nets from a given netlist. |
|
Convert paths from net into polygons, evaluate all connected polygons and perform the merge. |
Db object. |
|
Nets. |
|
Return the cell netlist. |
|
Signal nets. |
|
Power nets. |
|
Signal nets. |
|
Power nets. |
|
Get all nets for each component instance. |
|
Get all component instances grouped by nets. |
Get a net from the Edb project. |
|
Determine if a net is named |
Import detail#
from pyedb.dotnet.database.nets import EdbNets
Property detail#
- property EdbNets.db#
Db object.
- property EdbNets.nets#
Nets.
- Returns:
dict[str,pyedb.dotnet.database.edb_data.nets_data.EDBNetsData]Dictionary of nets.
- property EdbNets.signal#
Signal nets.
- property EdbNets.power#
Power nets.
Method detail#
- EdbNets.__getitem__(name)#
Get a net from the Edb project.
- Parameters:
- Returns:
- EdbNets.__contains__(name)#
Determine if a net is named
nameor not.
- EdbNets.eligible_power_nets(threshold=0.3)#
- Return a list of nets calculated by area to be eligible for PWR/Ground net classification.
It uses the same algorithm implemented in SIwave.
- EdbNets.generate_extended_nets(resistor_below: int | float = 10, inductor_below: int | float = 1, capacitor_above: int | float = 1, exception_list: list = None, include_signal: bool = True, include_power: bool = True) list#
Get extended net and associated components.
- Parameters:
- resistor_below
int,float,optional Threshold of resistor value. Search extended net across resistors which has value lower than the threshold.
- inductor_below
int,float,optional Threshold of inductor value. Search extended net across inductances which has value lower than the threshold.
- capacitor_above
int,float,optional Threshold of capacitor value. Search extended net across capacitors which has value higher than the threshold.
- exception_list
list,optional List of components to bypass when performing threshold checks. Components in the list are considered as serial components. The default is
None.- include_signal
str,optional Whether to generate extended signal nets. The default is
True.- include_power
str,optional Whether to generate extended power nets. The default is
True.
- resistor_below
- Returns:
listList of all extended nets.
Examples
>>> from pyedb import Edb >>> app = Edb() >>> app.nets.get_extended_nets()
- EdbNets.classify_nets(power_nets=None, signal_nets=None)#
Reassign power/ground or signal nets based on list of nets.
- EdbNets.is_power_gound_net(netname_list)#
Determine if one of the nets in a list is power or ground.
- EdbNets.get_dcconnected_net_list(ground_nets=['GND'], res_value=0.001)#
Get the nets connected to the direct current through inductors.
Note
Only inductors are considered.
- EdbNets.get_powertree(power_net_name, ground_nets)#
Retrieve the power tree.
- Parameters:
- power_net_name
str Name of the power net.
- ground_nets
- power_net_name
- Returns:
- EdbNets.get_net_by_name(net_name)#
Find a net by name.
- EdbNets.delete_nets(netlist)#
Delete one or more nets from EDB.
Deprecated since version 0.6.62: Use
delete()method instead.- Parameters:
- Returns:
listList of nets that were deleted.
Examples
>>> deleted_nets = database.nets.delete(["Net1", "Net2"])
- EdbNets.delete(netlist)#
Delete one or more nets from EDB.
- Parameters:
- Returns:
listList of nets that were deleted.
Examples
>>> deleted_nets = database.nets.delete(["Net1", "Net2"])
- EdbNets.find_or_create_net(net_name='', start_with='', contain='', end_with='')#
Find or create the net with the given name in the layout.
- Parameters:
- net_name
str,optional Name of the net to find or create. The default is
"".- start_with
str,optional All net name starting with the string. Not case-sensitive.
- contain
str,optional All net name containing the string. Not case-sensitive.
- end_with
str,optional All net name ending with the string. Not case-sensitive.
- net_name
- Returns:
objectNet Object.
- EdbNets.is_net_in_component(component_name, net_name)#
Check if a net belongs to a component.
- EdbNets.find_and_fix_disjoint_nets(net_list=None, keep_only_main_net=False, clean_disjoints_less_than=0.0, order_by_area=False)#
Find and fix disjoint nets from a given netlist.
Deprecated since version Use: new property
edb.layout_validation.disjoint_nets()instead.- Parameters:
- net_list
str,list,optional List of nets on which check disjoints. If None is provided then the algorithm will loop on all nets.
- keep_only_main_netbool,
optional Remove all secondary nets other than principal one (the one with more objects in it). Default is False.
- clean_disjoints_less_thanbool,
optional Clean all disjoint nets with area less than specified area in square meters. Default is 0.0 to disable it.
- order_by_areabool,
optional Whether if the naming order has to be by number of objects (fastest) or area (slowest but more accurate). Default is
False.
- net_list
- Returns:
ListNew nets created.
Examples
>>> renamed_nets = database.nets.find_and_fix_disjoint_nets(["GND", "Net2"])