EDBComponent#
- class pyedb.dotnet.database.cell.hierarchy.component.EDBComponent(pedb, edb_object)#
Bases:
pyedb.dotnet.database.cell.hierarchy.hierarchy_obj.GroupManages EDB functionalities for components.
- Parameters:
- parent
pyedb.dotnet.database.components.Components Components object.
- component
object Edb Component Object
- parent
Overview#
Create a package definition and assign it to the component. |
|
Assign Spice model to this component. |
|
Assign S-parameter to this component. |
|
Use S-parameter model on the component. |
|
Assign RLC to this component. |
|
Create a Clearance on Soldermask layer by drawing a rectangle. |
Name of the definition. |
|
EDB layout instance object. |
|
Edb component instance. |
|
|
|
Component model. |
|
Package definition. |
|
Adding IC properties for grpc compatibility. |
|
Get or Set the component to active mode. |
|
Get or Set the component to active mode. |
|
Get assigned Spice model properties. |
|
Get assigned S-parameter model properties. |
|
Get assigned netlist model properties. |
|
Solder ball height if available. |
|
Solder ball shape. |
|
Solder ball diameter. |
|
Solder ball placement if available.. |
|
Reference Designator Name. |
|
Flag indicating if the current object exists. |
|
Retrieve assigned model type. |
|
Get component rlc values. |
|
Retrieve discrete component value. |
|
Resistance value. |
|
Capacitance Value. |
|
Inductance Value. |
|
Define if model is Parallel or Series. |
|
Compute the component center. |
|
Component’s bounding box. |
|
Compute the component rotation in radian. |
|
Pins of the component. |
|
Nets of Component. |
|
EDBPadstackInstance of Component. |
|
Component type. |
|
Number of Pins of Component. |
|
Component part name. |
|
Component part name. |
|
Placement layer. |
|
Check if a component is mounted on top or bottom of the layout. |
|
Lower elevation of the placement layer. |
|
Upper elevation of the placement layer. |
|
Top/bottom association of the placement layer. |
Import detail#
from pyedb.dotnet.database.cell.hierarchy.component import EDBComponent
Property detail#
- property EDBComponent.name#
Name of the definition.
- property EDBComponent.group_type#
- property EDBComponent.layout_instance#
EDB layout instance object.
- property EDBComponent.component_instance#
Edb component instance.
- property EDBComponent.component_property#
ComponentPropertyobject.
- property EDBComponent.model#
Component model.
- property EDBComponent.package_def#
Package definition.
- property EDBComponent.ic_die_properties#
Adding IC properties for grpc compatibility.
- property EDBComponent.is_enabled#
Get or Set the component to active mode.
- Returns:
- bool
Trueif component is active,Falseif is disabled..
- property EDBComponent.enabled#
Get or Set the component to active mode.
- property EDBComponent.spice_model#
Get assigned Spice model properties.
- property EDBComponent.s_param_model#
Get assigned S-parameter model properties.
- property EDBComponent.netlist_model#
Get assigned netlist model properties.
- property EDBComponent.solder_ball_height#
Solder ball height if available.
- property EDBComponent.solder_ball_shape#
Solder ball shape.
- property EDBComponent.solder_ball_diameter#
Solder ball diameter.
- property EDBComponent.solder_ball_placement#
Solder ball placement if available..
- property EDBComponent.is_null#
Flag indicating if the current object exists.
- property EDBComponent.model_type#
Retrieve assigned model type.
- property EDBComponent.rlc_values#
Get component rlc values.
- property EDBComponent.value#
Retrieve discrete component value.
- Returns:
strValue.
Noneif not an RLC Type.
- property EDBComponent.res_value#
Resistance value.
- Returns:
strResistance value or
Noneif not an RLC type.
- property EDBComponent.cap_value#
Capacitance Value.
- Returns:
strCapacitance Value.
Noneif not an RLC Type.
- property EDBComponent.ind_value#
Inductance Value.
- Returns:
strInductance Value.
Noneif not an RLC Type.
- property EDBComponent.is_parallel_rlc#
Define if model is Parallel or Series.
- Returns:
- bool
Trueif it is a parallel rlc model.Falsefor series RLC.Noneif not an RLC Type.
- property EDBComponent.bounding_box#
Component’s bounding box.
- Returns:
List[float]List of coordinates for the component’s bounding box, with the list of coordinates in this order: [X lower left corner, Y lower left corner, X upper right corner, Y upper right corner].
- property EDBComponent.pins#
EDBPadstackInstance of Component.
- Returns:
dic[str,dotnet.database.edb_data.definitions.EDBPadstackInstance]Dictionary of EDBPadstackInstance Components.
- property EDBComponent.numpins#
Number of Pins of Component.
- Returns:
intNumber of Pins of Component.
- property EDBComponent.is_top_mounted#
Check if a component is mounted on top or bottom of the layout.
- Returns:
- bool
Truecomponent is mounted on top,Falseon down.
- property EDBComponent.lower_elevation#
Lower elevation of the placement layer.
- Returns:
floatLower elevation of the placement layer.
Attribute detail#
- EDBComponent.edbcomponent#
Method detail#
- EDBComponent.create_package_def(name='', component_part_name=None)#
Create a package definition and assign it to the component.
- EDBComponent.assign_spice_model(file_path: str, name: str | None = None, sub_circuit_name: str | None = None, terminal_pairs: list | None = None)#
Assign Spice model to this component.
- EDBComponent.assign_s_param_model(file_path, name=None, reference_net=None)#
Assign S-parameter to this component.
- EDBComponent.use_s_parameter_model(name, reference_net=None)#
Use S-parameter model on the component.
- Parameters:
- name: str
Name of the S-parameter model.
- reference_net: str, optional
Reference net of the model.
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> edbapp = Edb() >>>comp_def = edbapp.definitions.components["CAPC3216X180X55ML20T25"] >>>comp_def.add_n_port_model("c:GRM32_DC0V_25degC_series.s2p", "GRM32_DC0V_25degC_series") >>>edbapp.components["C200"].use_s_parameter_model("GRM32_DC0V_25degC_series")
- EDBComponent.assign_rlc_model(res=None, ind=None, cap=None, is_parallel=False)#
Assign RLC to this component.