CfgCoordinateTerminalInfo#

class pyedb.configuration.cfg_ports_sources.CfgCoordinateTerminalInfo(pedb, **kwargs)#

Bases: CfgTerminalInfo

Represent a coordinate-based terminal selector.

Overview#

export_properties

Serialize to a dictionary with a "coordinates" key.

layer

point_x

point_y

net

Create a terminal selector that targets all pins of a net on a component.

Import detail#

from pyedb.configuration.cfg_ports_sources import CfgCoordinateTerminalInfo

Attribute detail#

CfgCoordinateTerminalInfo.layer#
CfgCoordinateTerminalInfo.point_x#
CfgCoordinateTerminalInfo.point_y#
CfgCoordinateTerminalInfo.net#

Create a terminal selector that targets all pins of a net on a component.

Parameters:
net_namestr

Net name, e.g. "VDD".

reference_designatorstr, optional

Component whose pins should be used, e.g. "U1".

Returns:
dict

Terminal-selector dictionary.

Examples

>>> TerminalInfo.net("VDD", reference_designator="U1")
{'net': 'VDD', 'reference_designator': 'U1'}

Method detail#

CfgCoordinateTerminalInfo.export_properties()#

Serialize to a dictionary with a "coordinates" key.

Returns:
dict

{"coordinates": {"layer": ..., "point": [...], "net": ...}}.