diff --git a/src/pyedb/dotnet/edb_core/cell/hierarchy/component.py b/src/pyedb/dotnet/edb_core/cell/hierarchy/component.py index 6b91fbc04f..95517f6f9f 100644 --- a/src/pyedb/dotnet/edb_core/cell/hierarchy/component.py +++ b/src/pyedb/dotnet/edb_core/cell/hierarchy/component.py @@ -833,6 +833,10 @@ def assign_spice_model( File path of the Spice model. name : str, optional Name of the Spice model. + sub_circuit_name : str, optional + Name of the sub circuit. + terminal_pairs : list, optional + list of terminal pairs. Returns ------- @@ -879,7 +883,8 @@ def assign_s_param_model(self, file_path, name=None, reference_net=None): File path of the S-parameter model. name : str, optional Name of the S-parameter model. - + reference_net : str, optional + Name of the reference net. Returns ------- diff --git a/src/pyedb/dotnet/edb_core/definition/component_def.py b/src/pyedb/dotnet/edb_core/definition/component_def.py index e1d8301a34..237c9ab380 100644 --- a/src/pyedb/dotnet/edb_core/definition/component_def.py +++ b/src/pyedb/dotnet/edb_core/definition/component_def.py @@ -130,22 +130,32 @@ def assign_s_param_model(self, file_path, model_name=None, reference_net=None): comp.assign_s_param_model(file_path, model_name, reference_net) return True - def assign_spice_model(self, file_path, model_name=None): + def assign_spice_model( + self, + file_path, + model_name=None, + sub_circuit_name=None, + terminal_pairs=None, + ): """Assign Spice model to all components under this part name. Parameters ---------- file_path : str File path of the Spice model. - name : str, optional + model_name : str, optional Name of the Spice model. + sub_circuit_name : str, optional + Name of the sub circuit. + terminal_pairs : list, optional + list of terminal pairs. Returns ------- """ for comp in list(self.components.values()): - comp.assign_spice_model(file_path, model_name) + comp.assign_spice_model(file_path, model_name, sub_circuit_name, terminal_pairs) return True @property