EDBNetsData#

class pyedb.dotnet.database.edb_data.nets_data.EDBNetsData(raw_net, core_app)#

Bases: pyedb.dotnet.database.dotnet.database.NetDotNet

Manages EDB functionalities for a primitives. It Inherits EDB Object properties.

Examples

>>> from pyedb import Edb
>>> edb = Edb(myedb, edbversion="2021.2")
>>> edb_net = edb.nets.nets["GND"]
>>> edb_net.name  # Class Property
>>> edb_net.name  # EDB Object Property

Overview#

find_dc_short

Find DC-shorted nets.

plot

Plot a net to Matplotlib 2D chart.

get_smallest_trace_width

Retrieve the smallest trace width from paths.

primitives

Return the list of primitives that belongs to the net.

padstack_instances

Return the list of primitives that belongs to the net.

components

Return the list of components that touch the net.

extended_net

Get extended net and associated components.

Import detail#

from pyedb.dotnet.database.edb_data.nets_data import EDBNetsData

Property detail#

property EDBNetsData.primitives#

Return the list of primitives that belongs to the net.

Returns:
list of pyedb.dotnet.database.edb_data.primitives_data.EDBPrimitives
property EDBNetsData.padstack_instances#

Return the list of primitives that belongs to the net.

Returns:
list of pyedb.dotnet.database.edb_data.padstacks_data.EDBPadstackInstance
property EDBNetsData.components#

Return the list of components that touch the net.

Returns:
dict[str, pyedb.dotnet.database.cell.hierarchy.component.EDBComponent]
property EDBNetsData.extended_net#

Get extended net and associated components.

Returns:
:class:` pyedb.dotnet.database.edb_data.nets_data.EDBExtendedNetData

Examples

>>> from pyedb import Edb
>>> app = Edb()
>>> app.nets["BST_V3P3_S5"].extended_net

Attribute detail#

EDBNetsData.net_object#

Method detail#

EDBNetsData.find_dc_short(fix=False)#

Find DC-shorted nets.

Parameters:
fixbool, optional

If True, rename all the nets. (default) If False, only report dc shorts.

Returns:
List[List[str, str]]

[[net name, net name]].

EDBNetsData.plot(layers=None, show_legend=True, save_plot=None, outline=None, size=(2000, 1000), show=True)#

Plot a net to Matplotlib 2D chart.

Parameters:
layersstr, list, optional

Name of the layers to include in the plot. If None all the signal layers will be considered.

show_legendbool, optional

If True the legend is shown in the plot. (default) If False the legend is not shown.

save_plotstr, optional

If a path is specified the plot will be saved in this location. If save_plot is provided, the show parameter is ignored.

outlinelist, optional

List of points of the outline to plot.

sizetuple, optional

Image size in pixel (width, height).

showbool, optional

Whether to show the plot or not. Default is True.

EDBNetsData.get_smallest_trace_width()#

Retrieve the smallest trace width from paths.

Returns:
float

Trace smallest width.