Net#
- class pyedb.grpc.database.net.net.Net(pedb, core)#
Class managing
Netobjects in EDB database.- Parameters:
- pedb
Edb Parent EDB object.
- core
ansys.edb.core.net.net.Net Core EDB Net object to manage.
- pedb
Examples
>>> from pyedb import Edb >>> edb = Edb("myedb", edbversion="2026.1") >>> edb_net = edb.nets["GND"] >>> edb_net.name 'GND'
Overview#
Create a new net in the EDB database. |
|
Find a net by name in a given layout. |
Find DC-shorted nets connected to this net. |
|
Plot the net using Matplotlib. |
|
Get the minimum trace width from path primitives in this net. |
|
Delete the net from the EDB database. |
Name of the net. |
|
Check if the net is a null net. |
|
Check if the net is a power or ground net. |
|
All primitives belonging to this net. |
|
All padstack instances belonging to this net. |
|
Components connected to this net. |
|
Extended net associated with this net. |
Import detail#
from pyedb.grpc.database.net.net import Net
Property detail#
- property Net.is_null: bool#
Check if the net is a null net.
- Returns:
- bool
Trueif the net is a null net,Falseotherwise.
- property Net.is_power_ground#
Check if the net is a power or ground net.
- Returns:
- bool
Trueif the net is a power or ground net,Falseotherwise.
- 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.
- property Net.padstack_instances: list[pyedb.grpc.database.primitive.padstack_instance.PadstackInstance]#
All padstack instances belonging to this net.
- Returns:
listofPadstackInstancePadstack instances associated with the net.
- property Net.components: dict[str, pyedb.grpc.database.hierarchy.component.Component]#
Components connected to this net.
- property Net.extended_net#
Extended net associated with this net.
- Returns:
ExtendedNetorNoneExtended 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:
- layout
pyedb.grpc.database.layout.layout.Layout Layout to create the net in.
- name
str Name of the new net.
- layout
- Returns:
NetNewly created net object.
- 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:
- layers
strorlist[str],optional Layer name(s) to include. If
None, uses all signal layers.- show_legendbool,
optional Enable legend display. Default:
True.- save_plot
str,optional Full path to save the plot image. If specified, overrides
show.- outline
list,optional Outline points for plot boundary.
- size
tuple,optional Image dimensions in pixels (width, height). Default: (2000, 1000).
- showbool,
optional Display the plot. Default:
True.- title
str,optional Plot title. Uses net name if
None. Default:None.
- layers
- Net.get_smallest_trace_width() float#
Get the minimum trace width from path primitives in this net.
- Returns:
floatSmallest width found in database units. Returns 1e10 if no paths exist.
- Net.delete()#
Delete the net from the EDB database.