Net#

class pyedb.grpc.database.net.net.Net(pedb, core)#

Class managing Net objects in EDB database.

Parameters:
pedbEdb

Parent EDB object.

coreansys.edb.core.net.net.Net

Core EDB Net object to manage.

Examples

>>> from pyedb import Edb
>>> edb = Edb("myedb", edbversion="2026.1")
>>> edb_net = edb.nets["GND"]
>>> edb_net.name
'GND'

Overview#

create

Create a new net in the EDB database.

find_by_name

Find a net by name in a given layout.

find_dc_short

Find DC-shorted nets connected to this net.

plot

Plot the net using Matplotlib.

get_smallest_trace_width

Get the minimum trace width from path primitives in this net.

delete

Delete the net from the EDB database.

name

Name of the net.

is_null

Check if the net is a null net.

is_power_ground

Check if the net is a power or ground net.

primitives

All primitives belonging to this net.

padstack_instances

All padstack instances belonging to this net.

components

Components connected to this net.

extended_net

Extended net associated with this net.

Import detail#

from pyedb.grpc.database.net.net import Net

Property detail#

property Net.name#

Name of the net.

Returns:
str

Name of the net.

property Net.is_null: bool#

Check if the net is a null net.

Returns:
bool

True if the net is a null net, False otherwise.

property Net.is_power_ground#

Check if the net is a power or ground net.

Returns:
bool

True if the net is a power or ground net, False otherwise.

property Net.primitives: list[pyedb.grpc.database.primitive.path.Path | pyedb.grpc.database.primitive.polygon.Polygon | pyedb.grpc.database.primitive.circle.Circle | pyedb.grpc.database.primitive.rectangle.Rectangle | pyedb.grpc.database.primitive.bondwire.Bondwire]#

All primitives belonging to this net.

Returns:
list

List of primitive objects which can be one of: - Path - Polygon - Circle - Rectangle - Bondwire

property Net.padstack_instances: list[pyedb.grpc.database.primitive.padstack_instance.PadstackInstance]#

All padstack instances belonging to this net.

Returns:
list of PadstackInstance

Padstack instances associated with the net.

property Net.components: dict[str, pyedb.grpc.database.hierarchy.component.Component]#

Components connected to this net.

Returns:
dict

Dictionary of components keyed by component name, with values as Component objects.

property Net.extended_net#

Extended net associated with this net.

Returns:
ExtendedNet or None

Extended net object if exists, otherwise None.

Examples

>>> from pyedb import Edb
>>> edb = Edb("myedb", version="2026.1")
>>> edb.nets["BST_V3P3_S5"].extended_net

Attribute detail#

Net.core#

Method detail#

classmethod Net.create(layout, name: str)#

Create a new net in the EDB database.

Parameters:
layoutpyedb.grpc.database.layout.layout.Layout

Layout to create the net in.

namestr

Name of the new net.

Returns:
Net

Newly created net object.

Net.find_dc_short(fix=False) list[list[str]]#

Find DC-shorted nets connected to this net.

Parameters:
fixbool, optional

Whether to automatically rename nets to resolve shorts. Default: False (only report shorts).

Returns:
list[list[str]]

List of shorted net pairs in the format [[net_name1, net_name2], …].

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

Plot the net using Matplotlib.

Parameters:
layersstr or list[str], optional

Layer name(s) to include. If None, uses all signal layers.

show_legendbool, optional

Enable legend display. Default: True.

save_plotstr, optional

Full path to save the plot image. If specified, overrides show.

outlinelist, optional

Outline points for plot boundary.

sizetuple, optional

Image dimensions in pixels (width, height). Default: (2000, 1000).

showbool, optional

Display the plot. Default: True.

titlestr, optional

Plot title. Uses net name if None. Default: None.

Net.get_smallest_trace_width() float#

Get the minimum trace width from path primitives in this net.

Returns:
float

Smallest width found in database units. Returns 1e10 if no paths exist.

Net.delete()#

Delete the net from the EDB database.

classmethod Net.find_by_name(layout, name)#

Find a net by name in a given layout.

Parameters:
layoutLayout

Layout to search for the net.

namestr

Name of net.

Returns:
Net

Net found. Check the is_null property of the returned net to see if it exists.