CfgTerminalInfo#
- class pyedb.configuration.cfg_ports_sources.CfgTerminalInfo(pedb, **kwargs)#
Bases:
pyedb.configuration.cfg_common.CfgBaseDescribe a high-level terminal selector used by ports, sources, and probes.
Overview#
Update the contact radius used for equipotential region creation. |
|
Serialize this terminal selector to a plain dictionary. |
Create a terminal selector that targets a single component pin. |
|
Create a terminal selector that targets all pins of a net on a component. |
|
Create a terminal selector that references a named pin group. |
|
Create a terminal selector that targets a named padstack instance. |
|
Create a terminal selector at an exact XY location on a layer. |
|
Create a terminal selector that resolves to the nearest reference pin. |
Import detail#
from pyedb.configuration.cfg_ports_sources import CfgTerminalInfo
Attribute detail#
- CfgTerminalInfo.CFG_TERMINAL_TYPES = ['pin', 'net', 'pin_group', 'nearest_pin', 'coordinates']#
- CfgTerminalInfo.value#
- CfgTerminalInfo.reference_designator#
- CfgTerminalInfo.contact_type#
- CfgTerminalInfo.contact_radius#
- CfgTerminalInfo.num_of_contact#
- CfgTerminalInfo.contact_expansion#
Method detail#
- static CfgTerminalInfo.pin(pin_name: str, reference_designator: str | None = None) dict#
Create a terminal selector that targets a single component pin.
- Parameters:
- Returns:
dictTerminal-selector dictionary, e.g.
{"pin": "A1", "reference_designator": "U1"}.
Examples
>>> TerminalInfo.pin("A1", reference_designator="U1") {'pin': 'A1', 'reference_designator': 'U1'}
- static CfgTerminalInfo.net(net_name: str, reference_designator: str | None = None) dict#
Create a terminal selector that targets all pins of a net on a component.
- Parameters:
- Returns:
dictTerminal-selector dictionary.
Examples
>>> TerminalInfo.net("VDD", reference_designator="U1") {'net': 'VDD', 'reference_designator': 'U1'}
- static CfgTerminalInfo.pin_group(pin_group_name: str) dict#
Create a terminal selector that references a named pin group.
- Parameters:
- pin_group_name
str Name of a pre-defined pin group, e.g.
"pg_VDD".
- pin_group_name
- Returns:
dictTerminal-selector dictionary
{"pin_group": pin_group_name}.
Examples
>>> TerminalInfo.pin_group("pg_VDD") {'pin_group': 'pg_VDD'}
- static CfgTerminalInfo.padstack(padstack_instance_name: str) dict#
Create a terminal selector that targets a named padstack instance.
Use this for coaxial ports placed on named via instances.
- Parameters:
- padstack_instance_name
str AEDT padstack-instance name, e.g.
"via_A1".
- padstack_instance_name
- Returns:
dictTerminal-selector dictionary
{"padstack": padstack_instance_name}.
Examples
>>> TerminalInfo.padstack("via_A1") {'padstack': 'via_A1'}
- static CfgTerminalInfo.coordinates(layer: str, x: float | int, y: float | int, net: str) dict#
Create a terminal selector at an exact XY location on a layer.
- Parameters:
- Returns:
dictTerminal-selector dictionary with a
"coordinates"key.
Examples
>>> TerminalInfo.coordinates("top", 0.001, 0.002, "SIG") {'coordinates': {'layer': 'top', 'point': [0.001, 0.002], 'net': 'SIG'}}
- static CfgTerminalInfo.nearest_pin(reference_net: str, search_radius='5mm') dict#
Create a terminal selector that resolves to the nearest reference pin.
Useful as a negative_terminal when you want the solver to auto-find a ground reference.
- Parameters:
- Returns:
dictTerminal-selector dictionary with a
"nearest_pin"key.
Examples
>>> TerminalInfo.nearest_pin("GND", search_radius="3mm") {'nearest_pin': {'reference_net': 'GND', 'search_radius': '3mm'}}