CfgTerminals#
- class pyedb.configuration.cfg_terminals.CfgTerminals(/, **data: Any)#
Bases:
pyedb.configuration.cfg_common.CfgBaseModelCollect low-level terminal definitions for serialization.
Overview#
Reconstruct a |
Add a terminal created from a named padstack instance. |
|
Add a terminal created from a named pin group. |
|
Add a terminal placed at exact XY coordinates. |
|
Add a terminal attached to a primitive edge. |
|
Add a bundle terminal that groups several existing terminals. |
Import detail#
from pyedb.configuration.cfg_terminals import CfgTerminals
Attribute detail#
- CfgTerminals.terminals: list[CfgPadstackInstanceTerminal | CfgPinGroupTerminal | CfgPointTerminal | CfgEdgeTerminal | CfgBundleTerminal | dict] = None#
Method detail#
- classmethod CfgTerminals.create(terminals: list[dict])#
Reconstruct a
CfgTerminalsinstance from raw dictionaries.
- CfgTerminals.add_padstack_instance_terminal(name: str, padstack_instance: str, impedance: float | int | str, boundary_type: Literal['PortBoundary', 'PecBoundary', 'RlcBoundary', 'kCurrentSource', 'kVoltageSource', 'kNexximGround', 'kNexximPort', 'kDcTerminal', 'kVoltageProbe', 'InvalidBoundary', 'port', 'dc_terminal', 'voltage_probe', 'voltage_source', 'current_source', 'rlc', 'pec'], hfss_type: Literal['Wave', 'Gap'] | None = None, is_circuit_port: bool = False, reference_terminal: str | None = None, amplitude: float | int | str = 1, phase: float | int | str = 0, terminal_to_ground: Literal['kNoGround', 'kNegative', 'kNegativeNode', 'kPositive', 'kPositiveNode', 'no_ground', 'negative', 'positive'] = 'kNoGround', padstack_instance_id: int | None = None, layer: str | None = None)#
Add a terminal created from a named padstack instance.
- Parameters:
- name
str Unique terminal name.
- padstack_instance
str AEDT name of the padstack instance.
- impedance
float,int,orstr Terminal impedance.
- boundary_type
str Boundary type string (e.g.
"PortBoundary").- hfss_type
str,optional HFSS terminal type, e.g.
"Wave"or"Gap".- is_circuit_portbool,
optional Default is
False.- reference_terminal
str,optional Name of the reference terminal this terminal is paired with.
- amplitude
float,int,orstr,optional Default is
1.- phase
float,int,orstr,optional Default is
0.- terminal_to_ground
str,optional Default is
"kNoGround".- padstack_instance_id
int,optional Internal padstack-instance integer ID.
- layer
str,optional Layer name override.
- name
- Returns:
CfgPadstackInstanceTerminalThe newly created terminal object.
- CfgTerminals.add_pin_group_terminal(name: str, pin_group: str, impedance: float | int | str, boundary_type: Literal['PortBoundary', 'PecBoundary', 'RlcBoundary', 'kCurrentSource', 'kVoltageSource', 'kNexximGround', 'kNexximPort', 'kDcTerminal', 'kVoltageProbe', 'InvalidBoundary', 'port', 'dc_terminal', 'voltage_probe', 'voltage_source', 'current_source', 'rlc', 'pec'], reference_terminal: str | None = None, amplitude: float | int | str = 1, phase: float | int | str = 0, terminal_to_ground: Literal['kNoGround', 'kNegative', 'kNegativeNode', 'kPositive', 'kPositiveNode', 'no_ground', 'negative', 'positive'] = 'kNoGround')#
Add a terminal created from a named pin group.
- Parameters:
- name
str Unique terminal name.
- pin_group
str Pin-group name, e.g.
"pg_VDD".- impedance
float,int,orstr Terminal impedance.
- boundary_type
str Boundary type string.
- reference_terminal
str,optional Name of the paired reference terminal.
- amplitude
float,int,orstr,optional Default is
1.- phase
float,int,orstr,optional Default is
0.- terminal_to_ground
str,optional Default is
"kNoGround".
- name
- Returns:
CfgPinGroupTerminalThe newly created terminal object.
Examples
>>> cfg.terminals.add_pin_group_terminal("t_vdd", "pg_VDD", 50, "port")
- CfgTerminals.add_point_terminal(name: str, x: float | int | str, y: float | int | str, layer: str, net: str, impedance: float | int | str, boundary_type: Literal['PortBoundary', 'PecBoundary', 'RlcBoundary', 'kCurrentSource', 'kVoltageSource', 'kNexximGround', 'kNexximPort', 'kDcTerminal', 'kVoltageProbe', 'InvalidBoundary', 'port', 'dc_terminal', 'voltage_probe', 'voltage_source', 'current_source', 'rlc', 'pec'], reference_terminal: str | None = None, amplitude: float | int | str = 1, phase: float | int | str = 0, terminal_to_ground: Literal['kNoGround', 'kNegative', 'kNegativeNode', 'kPositive', 'kPositiveNode', 'no_ground', 'negative', 'positive'] = 'kNoGround')#
Add a terminal placed at exact XY coordinates.
- Parameters:
- name
str Unique terminal name.
- x
float,int,orstr X coordinate in metres.
- y
float,int,orstr Y coordinate in metres.
- layer
str Layer name on which the terminal is placed.
- net
str Net name.
- impedance
float,int,orstr Terminal impedance.
- boundary_type
str Boundary type string.
- reference_terminal
str,optional Paired reference terminal name.
- amplitude
float,int,orstr,optional Default is
1.- phase
float,int,orstr,optional Default is
0.- terminal_to_ground
str,optional Default is
"kNoGround".
- name
- Returns:
CfgPointTerminalThe newly created terminal object.
- CfgTerminals.add_edge_terminal(name: str, primitive: str, point_on_edge_x: float | int | str, point_on_edge_y: float | int | str, impedance: float | int | str, boundary_type: Literal['PortBoundary', 'PecBoundary', 'RlcBoundary', 'kCurrentSource', 'kVoltageSource', 'kNexximGround', 'kNexximPort', 'kDcTerminal', 'kVoltageProbe', 'InvalidBoundary', 'port', 'dc_terminal', 'voltage_probe', 'voltage_source', 'current_source', 'rlc', 'pec'], hfss_type: Literal['Wave', 'Gap'] | None = 'Wave', horizontal_extent_factor: int | str = 6, vertical_extent_factor: int | str = 8, pec_launch_width: str = '0.02mm', is_circuit_port: bool = False, reference_terminal: str | None = None, amplitude: float | int | str = 1, phase: float | int | str = 0, terminal_to_ground: Literal['kNoGround', 'kNegative', 'kNegativeNode', 'kPositive', 'kPositiveNode', 'no_ground', 'negative', 'positive'] = 'kNoGround')#
Add a terminal attached to a primitive edge.
- Parameters:
- name
str Unique terminal name.
- primitive
str AEDT name of the hosting primitive.
- point_on_edge_x
float,int,orstr X coordinate of the point on the edge.
- point_on_edge_y
float,int,orstr Y coordinate of the point on the edge.
- impedance
float,int,orstr Terminal impedance.
- boundary_type
str Boundary type string.
- hfss_type
str,optional "Wave"(default) or"Gap".- horizontal_extent_factor
intorstr,optional Default is
6.- vertical_extent_factor
intorstr,optional Default is
8.- pec_launch_width
str,optional Default is
"0.02mm".- is_circuit_portbool,
optional Default is
False.- reference_terminal
str,optional Paired reference terminal name.
- amplitude
float,int,orstr,optional Default is
1.- phase
float,int,orstr,optional Default is
0.- terminal_to_ground
str,optional Default is
"kNoGround".
- name
- Returns:
CfgEdgeTerminalThe newly created terminal object.