pyedb 0.59.0__py3-none-any.whl → 0.61.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyedb might be problematic. Click here for more details.
- pyedb/__init__.py +23 -1
- pyedb/common/__init__.py +21 -0
- pyedb/common/nets.py +22 -0
- pyedb/component_libraries/ansys_components.py +22 -0
- pyedb/configuration/__init__.py +21 -0
- pyedb/configuration/cfg_boundaries.py +1 -1
- pyedb/configuration/cfg_common.py +1 -1
- pyedb/configuration/cfg_components.py +36 -8
- pyedb/configuration/cfg_data.py +1 -1
- pyedb/configuration/cfg_general.py +1 -1
- pyedb/configuration/cfg_modeler.py +1 -1
- pyedb/configuration/cfg_nets.py +1 -1
- pyedb/configuration/cfg_operations.py +1 -1
- pyedb/configuration/cfg_package_definition.py +1 -1
- pyedb/configuration/cfg_padstacks.py +1 -1
- pyedb/configuration/cfg_pin_groups.py +1 -1
- pyedb/configuration/cfg_ports_sources.py +3 -2
- pyedb/configuration/cfg_s_parameter_models.py +1 -1
- pyedb/configuration/cfg_setup.py +5 -1
- pyedb/configuration/cfg_spice_models.py +1 -1
- pyedb/configuration/cfg_stackup.py +1 -1
- pyedb/configuration/cfg_terminals.py +22 -0
- pyedb/configuration/configuration.py +6 -5
- pyedb/dotnet/__init__.py +21 -0
- pyedb/dotnet/clr_module.py +22 -0
- pyedb/dotnet/database/Variables.py +1 -1
- pyedb/dotnet/database/__init__.py +22 -0
- pyedb/dotnet/database/cell/__init__.py +21 -0
- pyedb/dotnet/database/cell/connectable.py +1 -1
- pyedb/dotnet/database/cell/hierarchy/__init__.py +21 -0
- pyedb/dotnet/database/cell/hierarchy/component.py +9 -7
- pyedb/dotnet/database/cell/hierarchy/hierarchy_obj.py +1 -1
- pyedb/dotnet/database/cell/hierarchy/model.py +2 -29
- pyedb/dotnet/database/cell/hierarchy/netlist_model.py +1 -1
- pyedb/dotnet/database/cell/hierarchy/pin_pair_model.py +1 -1
- pyedb/dotnet/database/cell/hierarchy/s_parameter_model.py +11 -15
- pyedb/dotnet/database/cell/hierarchy/spice_model.py +14 -8
- pyedb/dotnet/database/cell/layout.py +5 -4
- pyedb/dotnet/database/cell/layout_obj.py +1 -1
- pyedb/dotnet/database/cell/primitive/__init__.py +22 -0
- pyedb/dotnet/database/cell/primitive/bondwire.py +1 -1
- pyedb/dotnet/database/cell/primitive/path.py +1 -1
- pyedb/dotnet/database/cell/primitive/primitive.py +1 -1
- pyedb/dotnet/database/cell/terminal/__init__.py +21 -0
- pyedb/dotnet/database/cell/terminal/bundle_terminal.py +1 -1
- pyedb/dotnet/database/cell/terminal/edge_terminal.py +1 -1
- pyedb/dotnet/database/cell/terminal/padstack_instance_terminal.py +1 -1
- pyedb/dotnet/database/cell/terminal/pingroup_terminal.py +1 -1
- pyedb/dotnet/database/cell/terminal/point_terminal.py +1 -1
- pyedb/dotnet/database/cell/terminal/terminal.py +7 -2
- pyedb/dotnet/database/cell/voltage_regulator.py +1 -1
- pyedb/dotnet/database/components.py +6 -2
- pyedb/dotnet/database/definition/__init__.py +21 -0
- pyedb/dotnet/database/definition/component_def.py +1 -1
- pyedb/dotnet/database/definition/component_model.py +1 -1
- pyedb/dotnet/database/definition/definition_obj.py +1 -1
- pyedb/dotnet/database/definition/definitions.py +1 -1
- pyedb/dotnet/database/definition/package_def.py +1 -1
- pyedb/dotnet/database/dotnet/__init__.py +21 -0
- pyedb/dotnet/database/dotnet/database.py +1 -1
- pyedb/dotnet/database/dotnet/primitive.py +1 -1
- pyedb/dotnet/database/edb_data/__init__.py +21 -0
- pyedb/dotnet/database/edb_data/control_file.py +1 -1
- pyedb/dotnet/database/edb_data/design_options.py +1 -1
- pyedb/dotnet/database/edb_data/edbvalue.py +1 -1
- pyedb/dotnet/database/edb_data/hfss_extent_info.py +1 -1
- pyedb/dotnet/database/edb_data/layer_data.py +1 -1
- pyedb/dotnet/database/edb_data/nets_data.py +1 -1
- pyedb/dotnet/database/edb_data/padstacks_data.py +6 -4
- pyedb/dotnet/database/edb_data/ports.py +1 -1
- pyedb/dotnet/database/edb_data/primitives_data.py +1 -1
- pyedb/dotnet/database/edb_data/raptor_x_simulation_setup_data.py +1 -1
- pyedb/dotnet/database/edb_data/simulation_configuration.py +1 -1
- pyedb/dotnet/database/edb_data/sources.py +1 -1
- pyedb/dotnet/database/edb_data/utilities.py +1 -1
- pyedb/dotnet/database/edb_data/variables.py +1 -1
- pyedb/dotnet/database/general.py +1 -1
- pyedb/dotnet/database/geometry/__init__.py +21 -0
- pyedb/dotnet/database/geometry/point_data.py +1 -1
- pyedb/dotnet/database/geometry/polygon_data.py +1 -1
- pyedb/dotnet/database/hfss.py +1 -1
- pyedb/dotnet/database/layout_obj_instance.py +1 -1
- pyedb/dotnet/database/layout_validation.py +1 -1
- pyedb/dotnet/database/materials.py +1 -1
- pyedb/dotnet/database/modeler.py +3 -2
- pyedb/dotnet/database/net_class.py +1 -1
- pyedb/dotnet/database/nets.py +1 -1
- pyedb/dotnet/database/padstack.py +188 -2
- pyedb/dotnet/database/sim_setup_data/__init__.py +22 -0
- pyedb/dotnet/database/sim_setup_data/data/__init__.py +22 -0
- pyedb/dotnet/database/sim_setup_data/data/adaptive_frequency_data.py +1 -1
- pyedb/dotnet/database/sim_setup_data/data/mesh_operation.py +1 -1
- pyedb/dotnet/database/sim_setup_data/data/settings.py +1 -1
- pyedb/dotnet/database/sim_setup_data/data/sim_setup_info.py +1 -1
- pyedb/dotnet/database/sim_setup_data/data/simulation_settings.py +1 -1
- pyedb/dotnet/database/sim_setup_data/data/siw_dc_ir_settings.py +1 -1
- pyedb/dotnet/database/sim_setup_data/data/sweep_data.py +1 -1
- pyedb/dotnet/database/sim_setup_data/io/__init__.py +21 -0
- pyedb/dotnet/database/sim_setup_data/io/siwave.py +1 -1
- pyedb/dotnet/database/siwave.py +1 -1
- pyedb/dotnet/database/stackup.py +1 -1
- pyedb/dotnet/database/utilities/__init__.py +22 -0
- pyedb/dotnet/database/utilities/heatsink.py +23 -0
- pyedb/dotnet/database/utilities/hfss_simulation_setup.py +1 -1
- pyedb/dotnet/database/utilities/obj_base.py +1 -1
- pyedb/dotnet/database/utilities/simulation_setup.py +1 -1
- pyedb/dotnet/database/utilities/siwave_cpa_simulation_setup.py +22 -0
- pyedb/dotnet/database/utilities/siwave_simulation_setup.py +22 -0
- pyedb/dotnet/database/utilities/value.py +1 -1
- pyedb/dotnet/edb.py +119 -123
- pyedb/edb_logger.py +1 -1
- pyedb/exceptions.py +22 -0
- pyedb/extensions/__init__.py +21 -0
- pyedb/extensions/create_cell_array.py +1 -1
- pyedb/extensions/via_design_backend.py +22 -0
- pyedb/generic/__init__.py +21 -0
- pyedb/generic/constants.py +1 -1
- pyedb/generic/data_handlers.py +22 -0
- pyedb/generic/design_types.py +1 -1
- pyedb/generic/filesystem.py +22 -0
- pyedb/generic/general_methods.py +22 -1
- pyedb/generic/grpc_warnings.py +22 -0
- pyedb/generic/plot.py +22 -0
- pyedb/generic/process.py +29 -2
- pyedb/generic/settings.py +1 -1
- pyedb/grpc/__init__.py +21 -0
- pyedb/grpc/database/__init__.py +21 -0
- pyedb/grpc/database/_typing.py +21 -0
- pyedb/grpc/database/components.py +9 -8
- pyedb/grpc/database/control_file.py +1 -1
- pyedb/grpc/database/definition/__init__.py +21 -0
- pyedb/grpc/database/definition/component_def.py +1 -1
- pyedb/grpc/database/definition/component_model.py +1 -1
- pyedb/grpc/database/definition/component_pin.py +1 -1
- pyedb/grpc/database/definition/materials.py +2 -2
- pyedb/grpc/database/definition/n_port_component_model.py +1 -1
- pyedb/grpc/database/definition/package_def.py +1 -1
- pyedb/grpc/database/definition/padstack_def.py +17 -10
- pyedb/grpc/database/definitions.py +1 -1
- pyedb/grpc/database/general.py +1 -1
- pyedb/grpc/database/geometry/__init__.py +21 -0
- pyedb/grpc/database/geometry/arc_data.py +1 -1
- pyedb/grpc/database/geometry/point_3d_data.py +1 -1
- pyedb/grpc/database/geometry/point_data.py +1 -1
- pyedb/grpc/database/geometry/polygon_data.py +1 -1
- pyedb/grpc/database/hfss.py +1 -1
- pyedb/grpc/database/hierarchy/__init__.py +21 -0
- pyedb/grpc/database/hierarchy/component.py +1 -1
- pyedb/grpc/database/hierarchy/model.py +1 -1
- pyedb/grpc/database/hierarchy/netlist_model.py +1 -1
- pyedb/grpc/database/hierarchy/pin_pair_model.py +1 -1
- pyedb/grpc/database/hierarchy/pingroup.py +1 -1
- pyedb/grpc/database/hierarchy/s_parameter_model.py +1 -1
- pyedb/grpc/database/hierarchy/spice_model.py +1 -1
- pyedb/grpc/database/layers/__init__.py +21 -0
- pyedb/grpc/database/layers/layer.py +22 -0
- pyedb/grpc/database/layers/stackup_layer.py +1 -1
- pyedb/grpc/database/layout/__init__.py +21 -0
- pyedb/grpc/database/layout/cell.py +1 -1
- pyedb/grpc/database/layout/layout.py +1 -1
- pyedb/grpc/database/layout/voltage_regulator.py +1 -1
- pyedb/grpc/database/layout_validation.py +1 -1
- pyedb/grpc/database/modeler.py +31 -9
- pyedb/grpc/database/net/__init__.py +21 -0
- pyedb/grpc/database/net/differential_pair.py +1 -1
- pyedb/grpc/database/net/extended_net.py +1 -1
- pyedb/grpc/database/net/net.py +1 -1
- pyedb/grpc/database/net/net_class.py +1 -1
- pyedb/grpc/database/nets.py +1 -1
- pyedb/grpc/database/padstacks.py +209 -9
- pyedb/grpc/database/ports/__init__.py +21 -0
- pyedb/grpc/database/ports/ports.py +1 -1
- pyedb/grpc/database/primitive/__init__.py +22 -0
- pyedb/grpc/database/primitive/bondwire.py +1 -1
- pyedb/grpc/database/primitive/circle.py +1 -1
- pyedb/grpc/database/primitive/padstack_instance.py +111 -16
- pyedb/grpc/database/primitive/path.py +1 -1
- pyedb/grpc/database/primitive/polygon.py +6 -4
- pyedb/grpc/database/primitive/primitive.py +1 -6
- pyedb/grpc/database/primitive/rectangle.py +1 -1
- pyedb/grpc/database/simulation_setup/__init__.py +21 -0
- pyedb/grpc/database/simulation_setup/adaptive_frequency.py +1 -1
- pyedb/grpc/database/simulation_setup/hfss_advanced_meshing_settings.py +1 -1
- pyedb/grpc/database/simulation_setup/hfss_advanced_settings.py +1 -1
- pyedb/grpc/database/simulation_setup/hfss_dcr_settings.py +1 -1
- pyedb/grpc/database/simulation_setup/hfss_general_settings.py +1 -1
- pyedb/grpc/database/simulation_setup/hfss_settings_options.py +1 -1
- pyedb/grpc/database/simulation_setup/hfss_simulation_settings.py +1 -1
- pyedb/grpc/database/simulation_setup/hfss_simulation_setup.py +1 -1
- pyedb/grpc/database/simulation_setup/hfss_solver_settings.py +1 -1
- pyedb/grpc/database/simulation_setup/mesh_operation.py +1 -1
- pyedb/grpc/database/simulation_setup/raptor_x_advanced_settings.py +1 -1
- pyedb/grpc/database/simulation_setup/raptor_x_general_settings.py +1 -1
- pyedb/grpc/database/simulation_setup/raptor_x_simulation_settings.py +1 -1
- pyedb/grpc/database/simulation_setup/raptor_x_simulation_setup.py +1 -1
- pyedb/grpc/database/simulation_setup/siwave_cpa_simulation_setup.py +22 -0
- pyedb/grpc/database/simulation_setup/siwave_dcir_simulation_setup.py +1 -1
- pyedb/grpc/database/simulation_setup/siwave_simulation_setup.py +1 -1
- pyedb/grpc/database/simulation_setup/sweep_data.py +1 -1
- pyedb/grpc/database/siwave.py +1 -1
- pyedb/grpc/database/source_excitations.py +1 -1
- pyedb/grpc/database/stackup.py +1 -1
- pyedb/grpc/database/terminal/__init__.py +21 -0
- pyedb/grpc/database/terminal/bundle_terminal.py +1 -1
- pyedb/grpc/database/terminal/edge_terminal.py +1 -1
- pyedb/grpc/database/terminal/padstack_instance_terminal.py +1 -1
- pyedb/grpc/database/terminal/pingroup_terminal.py +1 -1
- pyedb/grpc/database/terminal/point_terminal.py +1 -1
- pyedb/grpc/database/terminal/terminal.py +1 -1
- pyedb/grpc/database/utility/__init__.py +22 -0
- pyedb/grpc/database/utility/constants.py +1 -1
- pyedb/grpc/database/utility/heat_sink.py +1 -1
- pyedb/grpc/database/utility/hfss_extent_info.py +1 -1
- pyedb/grpc/database/utility/layout_statistics.py +1 -1
- pyedb/grpc/database/utility/rlc.py +1 -1
- pyedb/grpc/database/utility/sources.py +1 -1
- pyedb/grpc/database/utility/sweep_data_distribution.py +1 -1
- pyedb/grpc/database/utility/value.py +1 -1
- pyedb/grpc/database/utility/xml_control_file.py +1 -1
- pyedb/grpc/edb.py +230 -990
- pyedb/grpc/edb_init.py +1 -1
- pyedb/grpc/rpc_session.py +17 -4
- pyedb/ipc2581/__init__.py +21 -0
- pyedb/ipc2581/bom/__init__.py +21 -0
- pyedb/ipc2581/bom/bom.py +1 -1
- pyedb/ipc2581/bom/bom_item.py +1 -1
- pyedb/ipc2581/bom/characteristics.py +1 -1
- pyedb/ipc2581/bom/refdes.py +1 -1
- pyedb/ipc2581/content/__init__.py +21 -0
- pyedb/ipc2581/content/color.py +1 -1
- pyedb/ipc2581/content/content.py +1 -1
- pyedb/ipc2581/content/dictionary_color.py +1 -1
- pyedb/ipc2581/content/dictionary_fill.py +1 -1
- pyedb/ipc2581/content/dictionary_line.py +1 -1
- pyedb/ipc2581/content/entry_color.py +1 -1
- pyedb/ipc2581/content/entry_line.py +1 -1
- pyedb/ipc2581/content/fill.py +1 -1
- pyedb/ipc2581/content/layer_ref.py +1 -1
- pyedb/ipc2581/content/standard_geometries_dictionary.py +1 -1
- pyedb/ipc2581/ecad/__init__.py +21 -0
- pyedb/ipc2581/ecad/cad_data/__init__.py +21 -0
- pyedb/ipc2581/ecad/cad_data/assembly_drawing.py +1 -1
- pyedb/ipc2581/ecad/cad_data/cad_data.py +1 -1
- pyedb/ipc2581/ecad/cad_data/component.py +1 -1
- pyedb/ipc2581/ecad/cad_data/drill.py +1 -1
- pyedb/ipc2581/ecad/cad_data/feature.py +1 -1
- pyedb/ipc2581/ecad/cad_data/layer.py +1 -1
- pyedb/ipc2581/ecad/cad_data/layer_feature.py +1 -1
- pyedb/ipc2581/ecad/cad_data/logical_net.py +1 -1
- pyedb/ipc2581/ecad/cad_data/outline.py +1 -1
- pyedb/ipc2581/ecad/cad_data/package.py +1 -1
- pyedb/ipc2581/ecad/cad_data/padstack_def.py +1 -1
- pyedb/ipc2581/ecad/cad_data/padstack_hole_def.py +1 -1
- pyedb/ipc2581/ecad/cad_data/padstack_instance.py +1 -1
- pyedb/ipc2581/ecad/cad_data/padstack_pad_def.py +1 -1
- pyedb/ipc2581/ecad/cad_data/path.py +1 -1
- pyedb/ipc2581/ecad/cad_data/phy_net.py +1 -1
- pyedb/ipc2581/ecad/cad_data/pin.py +1 -1
- pyedb/ipc2581/ecad/cad_data/polygon.py +1 -1
- pyedb/ipc2581/ecad/cad_data/profile.py +1 -1
- pyedb/ipc2581/ecad/cad_data/stackup.py +1 -1
- pyedb/ipc2581/ecad/cad_data/stackup_group.py +1 -1
- pyedb/ipc2581/ecad/cad_data/stackup_layer.py +1 -1
- pyedb/ipc2581/ecad/cad_data/step.py +1 -1
- pyedb/ipc2581/ecad/cad_header.py +1 -1
- pyedb/ipc2581/ecad/ecad.py +1 -1
- pyedb/ipc2581/ecad/spec.py +1 -1
- pyedb/ipc2581/history_record.py +1 -1
- pyedb/ipc2581/ipc2581.py +1 -1
- pyedb/ipc2581/logistic_header.py +1 -1
- pyedb/libraries/common.py +1 -1
- pyedb/libraries/rf_libraries/base_functions.py +1 -1
- pyedb/libraries/rf_libraries/planar_antennas.py +1 -1
- pyedb/misc/__init__.py +21 -0
- pyedb/misc/aedtlib_personalib_install.py +1 -1
- pyedb/misc/decorators.py +22 -0
- pyedb/misc/downloads.py +1 -1
- pyedb/misc/misc.py +1 -1
- pyedb/misc/siw_feature_config/__init__.py +21 -0
- pyedb/misc/siw_feature_config/emc/__init__.py +21 -0
- pyedb/misc/siw_feature_config/emc/component_tags.py +22 -0
- pyedb/misc/siw_feature_config/emc/net_tags.py +22 -0
- pyedb/misc/siw_feature_config/emc/tag_library.py +22 -0
- pyedb/misc/siw_feature_config/emc/xml_generic.py +22 -0
- pyedb/misc/siw_feature_config/emc_rule_checker_settings.py +1 -1
- pyedb/misc/siw_feature_config/xtalk_scan/fd_xtalk_scan_config.py +1 -1
- pyedb/misc/siw_feature_config/xtalk_scan/impedance_scan_config.py +1 -1
- pyedb/misc/siw_feature_config/xtalk_scan/net.py +1 -1
- pyedb/misc/siw_feature_config/xtalk_scan/pins.py +1 -1
- pyedb/misc/siw_feature_config/xtalk_scan/scan_config.py +1 -1
- pyedb/misc/siw_feature_config/xtalk_scan/td_xtalk_config.py +1 -1
- pyedb/misc/utilities.py +1 -1
- pyedb/modeler/geometry_operators.py +22 -0
- pyedb/siwave.py +22 -0
- pyedb/siwave_core/__init__.py +21 -0
- pyedb/siwave_core/cpa/__init__.py +21 -0
- pyedb/siwave_core/cpa/simulation_setup_data_model.py +22 -0
- pyedb/siwave_core/icepak.py +1 -1
- pyedb/siwave_core/product_properties.py +23 -0
- pyedb/workflow.py +22 -0
- pyedb/workflows/__init__.py +21 -0
- pyedb/workflows/job_manager/__init__.py +21 -0
- pyedb/workflows/job_manager/backend/__init__.py +21 -0
- pyedb/workflows/job_manager/backend/job_manager_handler.py +910 -0
- pyedb/workflows/job_manager/backend/job_submission.py +1169 -0
- pyedb/workflows/job_manager/backend/service.py +1663 -0
- pyedb/workflows/job_manager/backend/start_service.py +86 -0
- pyedb/workflows/job_manager/backend/submit_job_on_scheduler.py +168 -0
- pyedb/workflows/job_manager/backend/submit_local_job.py +166 -0
- pyedb/workflows/sipi/hfss_auto_configuration.py +1 -1
- pyedb/workflows/utilities/__init__.py +21 -0
- pyedb/workflows/utilities/cutout.py +1428 -0
- pyedb/workflows/utilities/hfss_log_parser.py +446 -0
- {pyedb-0.59.0.dist-info → pyedb-0.61.0.dist-info}/METADATA +7 -4
- pyedb-0.61.0.dist-info/RECORD +318 -0
- {pyedb-0.59.0.dist-info → pyedb-0.61.0.dist-info}/licenses/LICENSE +7 -7
- pyedb-0.59.0.dist-info/RECORD +0 -306
- {pyedb-0.59.0.dist-info → pyedb-0.61.0.dist-info}/WHEEL +0 -0
pyedb/grpc/database/padstacks.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2023 -
|
|
1
|
+
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
#
|
|
4
4
|
#
|
|
@@ -231,7 +231,7 @@ class Padstacks(object):
|
|
|
231
231
|
@property
|
|
232
232
|
def instances_by_net(self) -> Dict[Any, PadstackInstance]:
|
|
233
233
|
if not self._instances_by_net:
|
|
234
|
-
for edb_padstack_instance in self.
|
|
234
|
+
for edb_padstack_instance in self.instances.values():
|
|
235
235
|
if edb_padstack_instance.net_name:
|
|
236
236
|
self._instances_by_net.setdefault(edb_padstack_instance.net_name, []).append(edb_padstack_instance)
|
|
237
237
|
return self._instances_by_net
|
|
@@ -346,6 +346,188 @@ class Padstacks(object):
|
|
|
346
346
|
"""Return a PadType Enumerator."""
|
|
347
347
|
return GrpcPadType
|
|
348
348
|
|
|
349
|
+
def create_dielectric_filled_backdrills(
|
|
350
|
+
self,
|
|
351
|
+
layer: str,
|
|
352
|
+
diameter: Union[float, str],
|
|
353
|
+
material: str,
|
|
354
|
+
permittivity: float,
|
|
355
|
+
padstack_instances: Optional[List[PadstackInstance]] = None,
|
|
356
|
+
padstack_definition: Optional[Union[str, List[str]]] = None,
|
|
357
|
+
dielectric_loss_tangent: Optional[float] = None,
|
|
358
|
+
nets: Optional[Union[str, List[str]]] = None,
|
|
359
|
+
) -> bool:
|
|
360
|
+
r"""Create dielectric-filled back-drills for through-hole vias.
|
|
361
|
+
|
|
362
|
+
Back-drilling (a.k.a. controlled-depth drilling) is used to remove the
|
|
363
|
+
unused via stub that acts as an unterminated transmission-line segment,
|
|
364
|
+
thereby improving signal-integrity at high frequencies. This routine
|
|
365
|
+
goes one step further: after the stub is removed the resulting cylindrical
|
|
366
|
+
cavity is **completely filled** with a user-specified dielectric. The
|
|
367
|
+
fill material restores mechanical rigidity, prevents solder-wicking, and
|
|
368
|
+
keeps the original via’s electrical characteristics intact on the
|
|
369
|
+
remaining, still-plated, portion.
|
|
370
|
+
|
|
371
|
+
Selection criteria
|
|
372
|
+
------------------
|
|
373
|
+
A via is processed only when **all** of the following are true:
|
|
374
|
+
|
|
375
|
+
1. It is a through-hole structure (spans at least three metal layers).
|
|
376
|
+
2. It includes the requested ``layer`` somewhere in its layer span.
|
|
377
|
+
3. It belongs to one of the supplied ``padstack_definition`` names
|
|
378
|
+
(or to *any* definition if the argument is omitted).
|
|
379
|
+
4. It is attached to one of the supplied ``nets`` (or to *any* net if
|
|
380
|
+
the argument is omitted).
|
|
381
|
+
|
|
382
|
+
Geometry that is created
|
|
383
|
+
------------------------
|
|
384
|
+
For every qualified via the routine
|
|
385
|
+
|
|
386
|
+
* Generates a new pad-stack definition named ``<original_name>_BD``.
|
|
387
|
+
The definition is drilled from the **bottom-most signal layer** up to
|
|
388
|
+
and **including** ``layer``, uses the exact ``diameter`` supplied, and
|
|
389
|
+
is plated at 100 %.
|
|
390
|
+
* Places an additional pad-stack instance on top of the original via,
|
|
391
|
+
thereby filling the newly drilled cavity with the requested
|
|
392
|
+
``material``.
|
|
393
|
+
* Leaves the original via untouched—only its unused stub is removed.
|
|
394
|
+
|
|
395
|
+
The back-drill is **not** subtracted from anti-pads or plane clearances;
|
|
396
|
+
the filling material is assumed to be electrically invisible at the
|
|
397
|
+
frequencies of interest.
|
|
398
|
+
|
|
399
|
+
Parameters
|
|
400
|
+
----------
|
|
401
|
+
layer : :class:`str`
|
|
402
|
+
Signal layer name up to which the back-drill is performed (inclusive).
|
|
403
|
+
The drill always starts on the bottom-most signal layer of the stack-up.
|
|
404
|
+
diameter : :class:`float` or :class:`str`
|
|
405
|
+
Finished hole diameter for the back-drill. A numeric value is
|
|
406
|
+
interpreted in the database length unit; a string such as
|
|
407
|
+
``"0.3mm"`` is evaluated with units.
|
|
408
|
+
material : :class:`str`
|
|
409
|
+
Name of the dielectric material that fills the drilled cavity. If the
|
|
410
|
+
material does not yet exist in the central material library it is
|
|
411
|
+
created on the fly.
|
|
412
|
+
permittivity : :class:`float`
|
|
413
|
+
Relative permittivity :math:`\varepsilon_{\mathrm{r}}` used when the
|
|
414
|
+
material has to be created. Must be positive.
|
|
415
|
+
padstack_instances : :class:`list` [:class:`PadstackInstance` ], optional
|
|
416
|
+
Explicit list of via instances to process. When provided,
|
|
417
|
+
``padstack_definition`` and ``nets`` are ignored for filtering.
|
|
418
|
+
padstack_definition : :class:`str` or :class:`list` [:class:`str` ], optional
|
|
419
|
+
Pad-stack definition(s) to process. If omitted, **all** through-hole
|
|
420
|
+
definitions are considered.
|
|
421
|
+
dielectric_loss_tangent : :class:`float`, optional
|
|
422
|
+
Loss tangent :math:`\tan\delta` used when the material has to be
|
|
423
|
+
created. Defaults to ``0.0``.
|
|
424
|
+
nets : :class:`str` or :class:`list` [:class:`str` ], optional
|
|
425
|
+
Net name(s) used to filter vias. If omitted, vias belonging to
|
|
426
|
+
**any** net are processed.
|
|
427
|
+
|
|
428
|
+
Returns
|
|
429
|
+
-------
|
|
430
|
+
:class:`bool`
|
|
431
|
+
``True`` when at least one back-drill was successfully created.
|
|
432
|
+
``False`` if no suitable via was found or any error occurred.
|
|
433
|
+
|
|
434
|
+
Raises
|
|
435
|
+
------
|
|
436
|
+
ValueError
|
|
437
|
+
If ``material`` is empty or if ``permittivity`` is non-positive when a
|
|
438
|
+
new material must be created.
|
|
439
|
+
|
|
440
|
+
Notes
|
|
441
|
+
-----
|
|
442
|
+
* The routine is safe to call repeatedly: existing back-drills are **not**
|
|
443
|
+
duplicated because the ``*_BD`` definition name is deterministic.
|
|
444
|
+
* The original via keeps its pad-stack definition and net assignment; only
|
|
445
|
+
its unused stub is removed.
|
|
446
|
+
* The back-drill is **not** subtracted from anti-pads or plane clearances;
|
|
447
|
+
the filling material is assumed to be electrically invisible at the
|
|
448
|
+
frequencies of interest.
|
|
449
|
+
|
|
450
|
+
Examples
|
|
451
|
+
--------
|
|
452
|
+
Create back-drills on all vias belonging to two specific pad-stack
|
|
453
|
+
definitions and two DDR4 nets:
|
|
454
|
+
|
|
455
|
+
>>> edb.padstacks.create_dielectric_filled_backdrills(
|
|
456
|
+
... layer="L3",
|
|
457
|
+
... diameter="0.25mm",
|
|
458
|
+
... material="EPON_827",
|
|
459
|
+
... permittivity=3.8,
|
|
460
|
+
... dielectric_loss_tangent=0.015,
|
|
461
|
+
... padstack_definition=["VIA_10MIL", "VIA_16MIL"],
|
|
462
|
+
... nets=["DDR4_DQ0", "DDR4_DQ1"],
|
|
463
|
+
... )
|
|
464
|
+
True
|
|
465
|
+
"""
|
|
466
|
+
_padstack_instances = defaultdict(list)
|
|
467
|
+
if padstack_instances:
|
|
468
|
+
for inst in padstack_instances:
|
|
469
|
+
_padstack_instances[inst.padstack_def.name].append(inst)
|
|
470
|
+
else:
|
|
471
|
+
if padstack_definition:
|
|
472
|
+
if isinstance(padstack_definition, str):
|
|
473
|
+
padstack_definition = [padstack_definition]
|
|
474
|
+
padstack_definitions = [
|
|
475
|
+
self.definitions.get(padstack_def, None) for padstack_def in padstack_definition
|
|
476
|
+
]
|
|
477
|
+
if nets:
|
|
478
|
+
if isinstance(nets, str):
|
|
479
|
+
nets = [nets]
|
|
480
|
+
for padstack_definition in padstack_definitions:
|
|
481
|
+
_padstack_instances[padstack_definition.name] = self.get_instances(
|
|
482
|
+
definition_name=padstack_definition.name, net_name=nets
|
|
483
|
+
)
|
|
484
|
+
else:
|
|
485
|
+
for padstack_definition in padstack_definitions:
|
|
486
|
+
_padstack_instances[padstack_definition.name] = padstack_definition.instances
|
|
487
|
+
elif nets:
|
|
488
|
+
instances = self.get_instances(net_name=nets)
|
|
489
|
+
for inst in instances:
|
|
490
|
+
padsatck_def_name = inst.padstack_def.name
|
|
491
|
+
padstack_def_layers = inst.padstack_def.data.layer_names
|
|
492
|
+
if layer in padstack_def_layers and len(padstack_def_layers) >= 3:
|
|
493
|
+
_padstack_instances[padsatck_def_name].append(inst)
|
|
494
|
+
else:
|
|
495
|
+
self._pedb.logger.info(
|
|
496
|
+
f"Drill layer {layer} not in padstack definition layers "
|
|
497
|
+
f"or layer number = {len(padstack_def_layers)} "
|
|
498
|
+
f"for padstack definition {padsatck_def_name}, skipping for backdrills"
|
|
499
|
+
)
|
|
500
|
+
if not material:
|
|
501
|
+
raise ValueError("`material` must be specified")
|
|
502
|
+
if not material in self._pedb.materials:
|
|
503
|
+
if not dielectric_loss_tangent:
|
|
504
|
+
dielectric_loss_tangent = 0.0
|
|
505
|
+
self._pedb.materials.add_dielectric_material(
|
|
506
|
+
name=material, permittivity=permittivity, dielectric_loss_tangent=dielectric_loss_tangent
|
|
507
|
+
)
|
|
508
|
+
for def_name, instances in _padstack_instances.items():
|
|
509
|
+
padstack_def_backdrill_name = f"{def_name}_BD"
|
|
510
|
+
start_layer = list(self._pedb.stackup.signal_layers.keys())[-1] # bottom layer
|
|
511
|
+
self.create(
|
|
512
|
+
padstackname=padstack_def_backdrill_name,
|
|
513
|
+
holediam=self._pedb.value(diameter),
|
|
514
|
+
paddiam="0.0",
|
|
515
|
+
antipaddiam="0.0",
|
|
516
|
+
start_layer=start_layer,
|
|
517
|
+
stop_layer=layer,
|
|
518
|
+
)
|
|
519
|
+
self.definitions[padstack_def_backdrill_name].material = material
|
|
520
|
+
self.definitions[padstack_def_backdrill_name].hole_plating_ratio = 100.0
|
|
521
|
+
for inst in instances:
|
|
522
|
+
inst.set_back_drill_by_layer(drill_to_layer=layer, offset=0.0, diameter=self._pedb.value(diameter))
|
|
523
|
+
self.place(
|
|
524
|
+
position=inst.position,
|
|
525
|
+
definition_name=padstack_def_backdrill_name,
|
|
526
|
+
fromlayer=start_layer,
|
|
527
|
+
tolayer=layer,
|
|
528
|
+
)
|
|
529
|
+
return True
|
|
530
|
+
|
|
349
531
|
def create_circular_padstack(
|
|
350
532
|
self,
|
|
351
533
|
padstackname: Optional[str] = None,
|
|
@@ -455,6 +637,11 @@ class Padstacks(object):
|
|
|
455
637
|
|
|
456
638
|
padstack_def.data = padstack_data
|
|
457
639
|
|
|
640
|
+
def delete_batch_instances(self, instances_to_delete):
|
|
641
|
+
for inst in instances_to_delete:
|
|
642
|
+
inst._edb_object.delete()
|
|
643
|
+
self.clear_instances_cache()
|
|
644
|
+
|
|
458
645
|
def delete_padstack_instances(self, net_names: Union[str, List[str]]) -> bool:
|
|
459
646
|
"""Delete padstack instances by net names.
|
|
460
647
|
|
|
@@ -478,7 +665,7 @@ class Padstacks(object):
|
|
|
478
665
|
|
|
479
666
|
for p_id, p in self.instances.items():
|
|
480
667
|
if p.net_name in net_names:
|
|
481
|
-
if not p.delete(): # pragma: no cover
|
|
668
|
+
if not p._edb_object.delete(): # pragma: no cover
|
|
482
669
|
return False
|
|
483
670
|
self.clear_instances_cache()
|
|
484
671
|
return True
|
|
@@ -805,6 +992,23 @@ class Padstacks(object):
|
|
|
805
992
|
via_list.append(inst)
|
|
806
993
|
return via_list
|
|
807
994
|
|
|
995
|
+
def layers_between(self, layers, start_layer=None, stop_layer=None):
|
|
996
|
+
"""
|
|
997
|
+
Return the sub-list of *layers* that lies between *start_layer*
|
|
998
|
+
(inclusive) and *stop_layer* (inclusive). Works no matter which
|
|
999
|
+
of the two is nearer the top of the stack.
|
|
1000
|
+
"""
|
|
1001
|
+
if not layers:
|
|
1002
|
+
return []
|
|
1003
|
+
|
|
1004
|
+
# default to the full stack if one end is unspecified
|
|
1005
|
+
start_idx = layers.index(start_layer) if start_layer in layers else 0
|
|
1006
|
+
stop_idx = layers.index(stop_layer) if stop_layer in layers else len(layers) - 1
|
|
1007
|
+
|
|
1008
|
+
# always slice from the smaller to the larger index
|
|
1009
|
+
lo, hi = sorted((start_idx, stop_idx))
|
|
1010
|
+
return layers[lo : hi + 1]
|
|
1011
|
+
|
|
808
1012
|
def create(
|
|
809
1013
|
self,
|
|
810
1014
|
padstackname: Optional[str] = None,
|
|
@@ -946,11 +1150,7 @@ class Padstacks(object):
|
|
|
946
1150
|
else: # pragma no cover
|
|
947
1151
|
self._logger.error("Unknown padstack hole range")
|
|
948
1152
|
padstack_data.material = "copper"
|
|
949
|
-
|
|
950
|
-
if start_layer and start_layer in layers: # pragma no cover
|
|
951
|
-
layers = layers[layers.index(start_layer) :]
|
|
952
|
-
if stop_layer and stop_layer in layers: # pragma no cover
|
|
953
|
-
layers = layers[: layers.index(stop_layer) + 1]
|
|
1153
|
+
layers = self.layers_between(layers=layers, start_layer=start_layer, stop_layer=stop_layer)
|
|
954
1154
|
if not isinstance(paddiam, list):
|
|
955
1155
|
pad_array = [paddiam]
|
|
956
1156
|
else:
|
|
@@ -1310,7 +1510,7 @@ class Padstacks(object):
|
|
|
1310
1510
|
name: Optional[str] = None,
|
|
1311
1511
|
pid: Optional[int] = None,
|
|
1312
1512
|
definition_name: Optional[str] = None,
|
|
1313
|
-
net_name: Optional[str] = None,
|
|
1513
|
+
net_name: Optional[Union[str, List[str]]] = None,
|
|
1314
1514
|
component_reference_designator: Optional[str] = None,
|
|
1315
1515
|
component_pin: Optional[str] = None,
|
|
1316
1516
|
) -> List[PadstackInstance]:
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from pathlib import Path
|
|
2
24
|
|
|
3
25
|
workdir = Path(__file__).parent
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2023 -
|
|
1
|
+
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
#
|
|
4
4
|
#
|
|
@@ -447,7 +447,7 @@ class PadstackInstance(GrpcPadstackInstance):
|
|
|
447
447
|
return self._bounding_box
|
|
448
448
|
return self._bounding_box
|
|
449
449
|
|
|
450
|
-
def in_polygon(self, polygon_data, include_partial=True) -> bool:
|
|
450
|
+
def in_polygon(self, polygon_data, include_partial=True, arbitrary_extent_value=300e-6) -> bool:
|
|
451
451
|
"""Check if padstack Instance is in given polygon data.
|
|
452
452
|
|
|
453
453
|
Parameters
|
|
@@ -457,30 +457,35 @@ class PadstackInstance(GrpcPadstackInstance):
|
|
|
457
457
|
Whether to include partial intersecting instances. The default is ``True``.
|
|
458
458
|
simple_check : bool, optional
|
|
459
459
|
Whether to perform a single check based on the padstack center or check the padstack bounding box.
|
|
460
|
+
arbitrary_extent_value : float, optional
|
|
461
|
+
When ``include_partial`` is ``True``, an arbitrary value is used to create a bounding box for the padstack
|
|
462
|
+
instance to check for intersection and save computation time during the cutout. The default is ``300e-6``.
|
|
460
463
|
|
|
461
464
|
Returns
|
|
462
465
|
-------
|
|
463
466
|
bool
|
|
464
467
|
``True`` when successful, ``False`` when failed.
|
|
465
468
|
"""
|
|
466
|
-
int_val = 1 if polygon_data.
|
|
469
|
+
int_val = 1 if polygon_data.is_inside(GrpcPointData(self.position)) else 0
|
|
467
470
|
if int_val == 0:
|
|
471
|
+
if include_partial:
|
|
472
|
+
# pad-stack instance bbox is slow we take an arbitrary value e.g. 300e-6
|
|
473
|
+
arbitrary_value = arbitrary_extent_value
|
|
474
|
+
position = self.position
|
|
475
|
+
inst_bbox = [
|
|
476
|
+
position[0] - arbitrary_value / 2,
|
|
477
|
+
position[1] - arbitrary_value / 2,
|
|
478
|
+
position[0] + arbitrary_value / 2,
|
|
479
|
+
position[1] + arbitrary_value / 2,
|
|
480
|
+
]
|
|
481
|
+
int_val = polygon_data.intersection_type(GrpcPolygonData(inst_bbox)).value
|
|
482
|
+
if int_val == 0: # fully outside
|
|
483
|
+
return False
|
|
484
|
+
elif int_val in [2, 3]: # fully or partially inside
|
|
485
|
+
return True
|
|
468
486
|
return False
|
|
469
487
|
else:
|
|
470
|
-
int_val = polygon_data.intersection_type(GrpcPolygonData(self.bounding_box))
|
|
471
|
-
# Intersection type:
|
|
472
|
-
# 0 = objects do not intersect
|
|
473
|
-
# 1 = this object fully inside other (no common contour points)
|
|
474
|
-
# 2 = other object fully inside this
|
|
475
|
-
# 3 = common contour points 4 = undefined intersection
|
|
476
|
-
if int_val == 0:
|
|
477
|
-
return False
|
|
478
|
-
elif include_partial:
|
|
479
|
-
return True
|
|
480
|
-
elif int_val < 3:
|
|
481
488
|
return True
|
|
482
|
-
else:
|
|
483
|
-
return False
|
|
484
489
|
|
|
485
490
|
@property
|
|
486
491
|
def start_layer(self) -> str:
|
|
@@ -723,6 +728,96 @@ class PadstackInstance(GrpcPadstackInstance):
|
|
|
723
728
|
except:
|
|
724
729
|
return False
|
|
725
730
|
|
|
731
|
+
@property
|
|
732
|
+
def backdrill_diameter(self):
|
|
733
|
+
parameters = []
|
|
734
|
+
if self.backdrill_bottom:
|
|
735
|
+
parameters = self.get_back_drill_by_layer(True)
|
|
736
|
+
elif self.backdrill_top:
|
|
737
|
+
parameters = self.get_back_drill_by_layer(False)
|
|
738
|
+
if parameters:
|
|
739
|
+
return round(parameters[-1].value, 9)
|
|
740
|
+
return 0.0
|
|
741
|
+
|
|
742
|
+
@backdrill_diameter.setter
|
|
743
|
+
def backdrill_diameter(self, value):
|
|
744
|
+
if self.backdrill_bottom:
|
|
745
|
+
parameters = self.get_back_drill_by_layer(True)
|
|
746
|
+
self.set_back_drill_by_layer(
|
|
747
|
+
drill_to_layer=parameters[0],
|
|
748
|
+
offset=parameters[1],
|
|
749
|
+
diameter=self._pedb.value(value),
|
|
750
|
+
from_bottom=True,
|
|
751
|
+
)
|
|
752
|
+
elif self.backdrill_top:
|
|
753
|
+
parameters = self.get_back_drill_by_layer(False)
|
|
754
|
+
self.set_back_drill_by_layer(
|
|
755
|
+
drill_to_layer=parameters[0],
|
|
756
|
+
offset=parameters[1],
|
|
757
|
+
diameter=Value(value),
|
|
758
|
+
from_bottom=False,
|
|
759
|
+
)
|
|
760
|
+
|
|
761
|
+
@property
|
|
762
|
+
def backdrill_layer(self):
|
|
763
|
+
parameters = []
|
|
764
|
+
if self.backdrill_bottom:
|
|
765
|
+
parameters = self.get_back_drill_by_layer(True)
|
|
766
|
+
elif self.backdrill_top:
|
|
767
|
+
parameters = self.get_back_drill_by_layer(False)
|
|
768
|
+
if parameters:
|
|
769
|
+
return parameters[0]
|
|
770
|
+
return ""
|
|
771
|
+
|
|
772
|
+
@backdrill_layer.setter
|
|
773
|
+
def backdrill_layer(self, value):
|
|
774
|
+
if self.backdrill_bottom:
|
|
775
|
+
parameters = self.get_back_drill_by_layer(True)
|
|
776
|
+
self.set_back_drill_by_layer(
|
|
777
|
+
drill_to_layer=self._pedb.stackup.layers[value],
|
|
778
|
+
offset=parameters[1],
|
|
779
|
+
diameter=parameters[2],
|
|
780
|
+
from_bottom=True,
|
|
781
|
+
)
|
|
782
|
+
elif self.backdrill_top:
|
|
783
|
+
parameters = self.get_back_drill_by_layer(False)
|
|
784
|
+
self.set_back_drill_by_layer(
|
|
785
|
+
drill_to_layer=value,
|
|
786
|
+
offset=parameters[1],
|
|
787
|
+
diameter=parameters[2],
|
|
788
|
+
from_bottom=False,
|
|
789
|
+
)
|
|
790
|
+
|
|
791
|
+
@property
|
|
792
|
+
def backdrill_offset(self):
|
|
793
|
+
parameters = []
|
|
794
|
+
if self.backdrill_bottom:
|
|
795
|
+
parameters = self.get_back_drill_by_layer(True)
|
|
796
|
+
elif self.backdrill_top:
|
|
797
|
+
parameters = self.get_back_drill_by_layer(False)
|
|
798
|
+
if parameters:
|
|
799
|
+
return parameters[1].value
|
|
800
|
+
return 0.0
|
|
801
|
+
|
|
802
|
+
@backdrill_offset.setter
|
|
803
|
+
def backdrill_offset(self, value):
|
|
804
|
+
if self.backdrill_bottom:
|
|
805
|
+
parameters = self.get_back_drill_by_layer(True)
|
|
806
|
+
self.set_back_drill_by_layer(
|
|
807
|
+
drill_to_layer=parameters[0],
|
|
808
|
+
offset=Value(value),
|
|
809
|
+
diameter=parameters[2],
|
|
810
|
+
from_bottom=True,
|
|
811
|
+
)
|
|
812
|
+
elif self.backdrill_top:
|
|
813
|
+
parameters = self.get_back_drill_by_layer(False)
|
|
814
|
+
self.set_back_drill_by_layer(
|
|
815
|
+
drill_to_layer=parameters[0],
|
|
816
|
+
offset=Value(value),
|
|
817
|
+
diameter=parameters[2],
|
|
818
|
+
from_bottom=False,
|
|
819
|
+
)
|
|
820
|
+
|
|
726
821
|
@property
|
|
727
822
|
def metal_volume(self) -> float:
|
|
728
823
|
"""Metal volume of the via hole instance in cubic units (m3). Metal plating ratio is accounted.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2023 -
|
|
1
|
+
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
#
|
|
4
4
|
#
|
|
@@ -337,6 +337,8 @@ class Polygon(GrpcPolygon, Primitive):
|
|
|
337
337
|
return False
|
|
338
338
|
|
|
339
339
|
def add_void(self, polygon):
|
|
340
|
-
if isinstance(polygon, list)
|
|
341
|
-
polygon = self._pedb.modeler.create_polygon(
|
|
342
|
-
|
|
340
|
+
if isinstance(polygon, list):
|
|
341
|
+
polygon = self._pedb.modeler.create_polygon(
|
|
342
|
+
points=polygon, layer_name=self.layer.name, net_name=self.net_name
|
|
343
|
+
)
|
|
344
|
+
self._edb_object.add_void(polygon)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2023 -
|
|
1
|
+
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
#
|
|
4
4
|
#
|
|
@@ -401,11 +401,6 @@ class Primitive(GrpcPrimitive):
|
|
|
401
401
|
for prim in primitives:
|
|
402
402
|
if isinstance(prim, Primitive):
|
|
403
403
|
prim.delete()
|
|
404
|
-
else:
|
|
405
|
-
try:
|
|
406
|
-
prim.Delete()
|
|
407
|
-
except AttributeError:
|
|
408
|
-
continue
|
|
409
404
|
return new_polys
|
|
410
405
|
|
|
411
406
|
def intersect(self, primitives) -> list[any]:
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|