PinPairModel#
- class pyedb.grpc.database.hierarchy.pin_pair_model.PinPairModel(component: pyedb.grpc.database.hierarchy.component.Component)#
Manage pin-pair model.
Overview#
Create pin pair model. Pin pair model is defined between two pins, and it can be used to define the RLC model |
Set RLC model for the pin pair. |
|
Delete RLC model for the pin pair. |
|
Add a pin pair definition. |
Import detail#
from pyedb.grpc.database.hierarchy.pin_pair_model import PinPairModel
Property detail#
- property PinPairModel.is_null: bool#
Check if the pin pair model is null.
- Returns:
- bool
True if the pin pair model is null, False otherwise.
Attribute detail#
- PinPairModel.core#
Method detail#
- classmethod PinPairModel.create(component: pyedb.grpc.database.hierarchy.component.Component, resistance: float | None = None, inductance: float | None = None, capacitance: float | None = None, pin1_name: str | None = None, pin2_name: str | None = None, is_parallel: bool = False) PinPairModel#
Create pin pair model. Pin pair model is defined between two pins, and it can be used to define the RLC model between two pins. Adding optional RLC values will enable the RLC model for the pin pair.
- Parameters:
- component
Component Edb instance.
- resistance
float,optional Resistance value. If not provided, the default value will be used. Default value is 0.
- inductance
float,optional Inductance value. If not provided, the default value will be used. Default value is 0.
- capacitance
float,optional Capacitance value. If not provided, the default value will be used. Default value is 0.
- pin1_name
str,optional First pin name. If not provided, the default name will be used. Default name is 1.
- pin2_name
str,optional Second pin name. If not provided, the default name will be used. Default name is 2.
- is_parallelbool,
optional Whether the RLC model is parallel. If not provided, the default value will be used
- component
- Returns:
PinPairModelThe created pin pair model.
- PinPairModel.set_rlc(pin_pair: tuple[str, str], rlc: ansys.edb.core.utility.rlc.Rlc)#
Set RLC model for the pin pair.
- PinPairModel.add_pin_pair(r: float | None = None, l: float | None = None, c: float | None = None, r_enabled: bool | None = None, l_enabled: bool | None = None, c_enabled: bool | None = None, first_pin: str | None = None, second_pin: str | None = None, is_parallel: bool = False)#
Add a pin pair definition.
- Parameters:
- r: float | None
- l: float | None
- c: float | None
- r_enabled: bool
- l_enabled: bool
- c_enabled: bool
- first_pin: str
- second_pin: str
- is_parallel: bool
- Returns: