pyedb 0.12.0__tar.gz → 0.12.2__tar.gz
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-0.12.0 → pyedb-0.12.2}/PKG-INFO +2 -2
- {pyedb-0.12.0 → pyedb-0.12.2}/pyproject.toml +1 -1
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/__init__.py +1 -1
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_boundaries.py +1 -1
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_components.py +1 -1
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_data.py +24 -5
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_general.py +1 -1
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_nets.py +1 -1
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_padstacks.py +3 -3
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_pin_groups.py +2 -2
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_ports_sources.py +4 -4
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_s_parameter_models.py +1 -1
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_setup.py +1 -1
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/cfg_spice_models.py +1 -1
- pyedb-0.12.2/src/pyedb/configuration/cfg_stackup.py +135 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/configuration.py +24 -40
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb.py +1 -3
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/layer_data.py +2 -2
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/stackup.py +40 -61
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/siwave.py +23 -2
- {pyedb-0.12.0 → pyedb-0.12.2}/LICENSE +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/README.md +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/configuration/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/application/Variables.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/application/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/clr_module.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/cell/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/cell/hierarchy/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/cell/hierarchy/model.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/components.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/definition/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/definition/component_def.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/definition/component_model.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/definition/definition_obj.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/definition/definitions.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/definition/package_def.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/dotnet/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/dotnet/database.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/dotnet/layout.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/dotnet/primitive.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/components_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/connectable.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/control_file.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/design_options.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/edbvalue.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/hfss_extent_info.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/hfss_pi_simulation_setup_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/hfss_simulation_setup_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/nets_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/padstacks_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/ports.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/primitives_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/raptor_x_simulation_setup_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/simulation_configuration.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/siwave_simulation_setup_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/sources.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/terminals.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/utilities.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/edb_data/variables.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/general.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/geometry/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/geometry/point_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/geometry/polygon_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/hfss.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/layout.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/layout_validation.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/materials.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/net_class.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/nets.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/obj_base.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/padstack.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/sim_setup_data/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/sim_setup_data/data/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/sim_setup_data/data/siw_dc_ir_settings.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/siwave.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/utilities/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/utilities/heatsink.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/dotnet/edb_core/utilities/simulation_setup.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/edb_logger.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/exceptions.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/generic/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/generic/constants.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/generic/data_handlers.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/generic/design_types.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/generic/filesystem.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/generic/general_methods.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/generic/plot.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/generic/process.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/generic/settings.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/bom/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/bom/bom.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/bom/bom_item.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/bom/characteristics.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/bom/refdes.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/color.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/content.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/dictionary_color.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/dictionary_fill.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/dictionary_line.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/entry_color.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/entry_line.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/fill.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/layer_ref.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/content/standard_geometries_dictionary.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/assembly_drawing.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/cad_data.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/component.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/drill.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/feature.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/layer.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/layer_feature.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/logical_net.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/outline.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/package.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/padstack_def.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/padstack_hole_def.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/padstack_instance.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/padstack_pad_def.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/path.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/phy_net.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/pin.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/polygon.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/profile.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/stackup.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/stackup_group.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/stackup_layer.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_data/step.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/cad_header.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/ecad.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ecad/spec.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/history_record.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/ipc2581.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/ipc2581/logistic_header.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/aedtlib_personalib_install.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/downloads.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/misc.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/pyedb.runtimeconfig.json +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/siw_feature_config/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/siw_feature_config/emc/__init__.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/siw_feature_config/emc/component_tags.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/siw_feature_config/emc/net_tags.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/siw_feature_config/emc/tag_library.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/siw_feature_config/emc/xml_generic.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/siw_feature_config/emc_rule_checker_settings.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/misc/utilities.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/modeler/geometry_operators.py +0 -0
- {pyedb-0.12.0 → pyedb-0.12.2}/src/pyedb/siwave_core/icepak.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyedb
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.2
|
|
4
4
|
Summary: Higher-Level Pythonic Ansys Electronics Data Base
|
|
5
5
|
Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
6
6
|
Maintainer-email: PyEDB developers <simon.vandenbrouck@ansys.com>
|
|
@@ -24,7 +24,7 @@ Requires-Dist: toml == 0.10.2
|
|
|
24
24
|
Requires-Dist: Rtree >= 1.2.0
|
|
25
25
|
Requires-Dist: ansys-sphinx-theme>=0.10.0,<0.17 ; extra == "doc"
|
|
26
26
|
Requires-Dist: imageio>=2.30.0,<2.35 ; extra == "doc"
|
|
27
|
-
Requires-Dist: ipython>=8.13.0,<8.
|
|
27
|
+
Requires-Dist: ipython>=8.13.0,<8.26 ; extra == "doc"
|
|
28
28
|
Requires-Dist: jupyterlab>=4.0.0,<4.3 ; extra == "doc"
|
|
29
29
|
Requires-Dist: matplotlib>=3.5.0,<3.10 ; extra == "doc"
|
|
30
30
|
Requires-Dist: nbsphinx>=0.9.0,<0.10 ; extra == "doc"
|
|
@@ -25,7 +25,7 @@ from enum import Enum
|
|
|
25
25
|
|
|
26
26
|
class CfgBoundaries:
|
|
27
27
|
def __init__(self, pdata, boundaries_dict):
|
|
28
|
-
self._pedb = pdata.
|
|
28
|
+
self._pedb = pdata._pedb
|
|
29
29
|
self._boundaries_dict = boundaries_dict
|
|
30
30
|
self.open_region = self._boundaries_dict.get("open_region", None)
|
|
31
31
|
self._map_open_region_type()
|
|
@@ -60,7 +60,7 @@ class CfgSolderBallsProperties:
|
|
|
60
60
|
|
|
61
61
|
class CfgComponent:
|
|
62
62
|
def __init__(self, pdata, **kwargs):
|
|
63
|
-
self._pedb = pdata.
|
|
63
|
+
self._pedb = pdata._pedb
|
|
64
64
|
self._comp_dict = kwargs
|
|
65
65
|
self.reference_designator = ""
|
|
66
66
|
self.part_type = self.ComponentType.RESISTOR
|
|
@@ -30,39 +30,58 @@ from pyedb.configuration.cfg_ports_sources import CfgPort, CfgSources
|
|
|
30
30
|
from pyedb.configuration.cfg_s_parameter_models import CfgSParameterModel
|
|
31
31
|
from pyedb.configuration.cfg_setup import CfgSetup
|
|
32
32
|
from pyedb.configuration.cfg_spice_models import CfgSpiceModel
|
|
33
|
+
from pyedb.configuration.cfg_stackup import CfgStackup
|
|
34
|
+
from pyedb.generic.general_methods import pyedb_function_handler
|
|
33
35
|
|
|
34
36
|
|
|
35
37
|
class CfgData(object):
|
|
36
38
|
"""Manages configure data."""
|
|
37
39
|
|
|
38
40
|
def __init__(self, pedb, **kwargs):
|
|
39
|
-
self.
|
|
40
|
-
self.edb_comps = self.
|
|
41
|
+
self._pedb = pedb
|
|
42
|
+
self.edb_comps = self._pedb.components.components
|
|
41
43
|
self.general = CfgGeneral(self, kwargs.get("general", None))
|
|
44
|
+
|
|
42
45
|
self.boundaries = {}
|
|
43
46
|
if kwargs.get("boundaries", None):
|
|
44
47
|
self.boundaries = CfgBoundaries(self, kwargs.get("boundaries", None))
|
|
45
|
-
|
|
48
|
+
|
|
49
|
+
self.nets = None
|
|
46
50
|
if kwargs.get("nets"):
|
|
47
51
|
self.nets = CfgNets(
|
|
48
52
|
self, kwargs.get("nets", {}).get("signal_nets", []), kwargs.get("nets", {}).get("power_ground_nets", [])
|
|
49
53
|
)
|
|
54
|
+
|
|
50
55
|
self.components = [CfgComponent(self, **component) for component in kwargs.get("components", [])]
|
|
56
|
+
|
|
51
57
|
self.padstacks = CfgPadstacks(self, kwargs.get("padstacks", None))
|
|
58
|
+
|
|
52
59
|
self.pin_groups = [CfgPinGroup(self, pin_group) for pin_group in kwargs.get("pin_groups", [])]
|
|
60
|
+
|
|
53
61
|
self.ports = [CfgPort(self, **port) for port in kwargs.get("ports", [])]
|
|
62
|
+
|
|
54
63
|
self.sources = [CfgSources(self, **source) for source in kwargs.get("sources", [])]
|
|
55
|
-
|
|
64
|
+
|
|
65
|
+
self.setups = []
|
|
56
66
|
if kwargs.get("setups", None):
|
|
57
67
|
self.setups = [CfgSetup(self, setup) for setup in kwargs.get("setups", [])]
|
|
58
|
-
|
|
68
|
+
|
|
69
|
+
self.stackup = CfgStackup(self._pedb, data=kwargs.get("stackup", {}))
|
|
70
|
+
|
|
59
71
|
self.s_parameters = [
|
|
60
72
|
CfgSParameterModel(self, self.general.s_parameter_library, sparam_model)
|
|
61
73
|
for sparam_model in kwargs.get("s_parameters", [])
|
|
62
74
|
]
|
|
75
|
+
|
|
63
76
|
self.spice_models = [
|
|
64
77
|
CfgSpiceModel(self, self.general.spice_model_library, spice_model)
|
|
65
78
|
for spice_model in kwargs.get("spice_models", [])
|
|
66
79
|
]
|
|
80
|
+
|
|
67
81
|
self.package_definition = None
|
|
68
82
|
self.operations = None
|
|
83
|
+
|
|
84
|
+
@pyedb_function_handler
|
|
85
|
+
def apply(self):
|
|
86
|
+
"""Apply configuration settings to the current design"""
|
|
87
|
+
self.stackup.apply()
|
|
@@ -28,7 +28,7 @@ class CfgPadstacks:
|
|
|
28
28
|
"""Padstack data class."""
|
|
29
29
|
|
|
30
30
|
def __init__(self, pdata, padstack_dict=None):
|
|
31
|
-
self._pedb = pdata.
|
|
31
|
+
self._pedb = pdata._pedb
|
|
32
32
|
self.definitions = []
|
|
33
33
|
self.instances = []
|
|
34
34
|
self._padstack_dict = padstack_dict
|
|
@@ -52,7 +52,7 @@ class Definition:
|
|
|
52
52
|
"""Padstack definition data class."""
|
|
53
53
|
|
|
54
54
|
def __init__(self, pdata, definition_dict):
|
|
55
|
-
self._pedb = pdata.
|
|
55
|
+
self._pedb = pdata._pedb
|
|
56
56
|
self._definition_dict = definition_dict
|
|
57
57
|
self.name = self._definition_dict.get("name", None)
|
|
58
58
|
self.hole_diameter = self._definition_dict.get("hole_diameter", None)
|
|
@@ -78,7 +78,7 @@ class Instance:
|
|
|
78
78
|
"""Instance data class."""
|
|
79
79
|
|
|
80
80
|
def __init__(self, pdata, instances_dict):
|
|
81
|
-
self._pedb = pdata.
|
|
81
|
+
self._pedb = pdata._pedb
|
|
82
82
|
self._instances_dict = instances_dict
|
|
83
83
|
self.name = self._instances_dict.get("name", "")
|
|
84
84
|
self.backdrill_top = None
|
|
@@ -25,7 +25,7 @@ class CfgPinGroup:
|
|
|
25
25
|
"""Manage configuration pin group class."""
|
|
26
26
|
|
|
27
27
|
def __init__(self, pdata, pingroup_dict):
|
|
28
|
-
self._pedb = pdata.
|
|
28
|
+
self._pedb = pdata._pedb
|
|
29
29
|
self._pingroup_dict = pingroup_dict
|
|
30
30
|
self.name = self._pingroup_dict.get("name", "")
|
|
31
31
|
self.reference_designator = self._pingroup_dict.get("reference_designator", "")
|
|
@@ -36,7 +36,7 @@ class CfgPinGroup:
|
|
|
36
36
|
"""Apply pin group on layout."""
|
|
37
37
|
if self.pins:
|
|
38
38
|
if not self._pedb.siwave.create_pin_group(self.reference_designator, list(self.pins), self.name):
|
|
39
|
-
self._pedb.
|
|
39
|
+
self._pedb.logger.error(f"Failed to create pin group on pins {self.pins}")
|
|
40
40
|
return False
|
|
41
41
|
self._pedb.logger.info(f"Pin group {self.name} created.")
|
|
42
42
|
return True
|
|
@@ -27,7 +27,7 @@ class CfgCircuitElement:
|
|
|
27
27
|
@property
|
|
28
28
|
def pedb(self):
|
|
29
29
|
"""Edb."""
|
|
30
|
-
return self._pdata.
|
|
30
|
+
return self._pdata._pedb
|
|
31
31
|
|
|
32
32
|
@pyedb_function_handler
|
|
33
33
|
def __init__(self, pdata, **kwargs):
|
|
@@ -76,7 +76,7 @@ class CfgCircuitElement:
|
|
|
76
76
|
search_radius = neg_value.get("search_radius", "5e-3")
|
|
77
77
|
temp = dict()
|
|
78
78
|
for i, j in pos_objs.items():
|
|
79
|
-
temp[i] = self._pdata.
|
|
79
|
+
temp[i] = self._pdata._pedb.padstacks.get_reference_pins(j, ref_net, search_radius, max_limit=1)[0]
|
|
80
80
|
self.neg_terminal = {
|
|
81
81
|
i: j.create_terminal(i + "_ref") if not j.terminal else j.terminal for i, j in temp.items()
|
|
82
82
|
}
|
|
@@ -105,7 +105,7 @@ class CfgCircuitElement:
|
|
|
105
105
|
pins.update(get_pin_obj(i))
|
|
106
106
|
else:
|
|
107
107
|
if terminal_type == "net":
|
|
108
|
-
temp = self._pdata.
|
|
108
|
+
temp = self._pdata._pedb.components.get_pins(self.reference_designator, terminal_value[0])
|
|
109
109
|
elif terminal_type == "pin_group":
|
|
110
110
|
pin_group = self.pedb.siwave.pin_groups[terminal_value[0]]
|
|
111
111
|
temp = pin_group.pins
|
|
@@ -119,7 +119,7 @@ class CfgCircuitElement:
|
|
|
119
119
|
else:
|
|
120
120
|
pg_name = f"pg_{self.name}_{self.reference_designator}"
|
|
121
121
|
pin_names = [i.pin_number for i in pins.values()]
|
|
122
|
-
name, temp = self._pdata.
|
|
122
|
+
name, temp = self._pdata._pedb.siwave.create_pin_group(self.reference_designator, pin_names, pg_name)
|
|
123
123
|
return {name: temp}
|
|
124
124
|
|
|
125
125
|
|
|
@@ -25,7 +25,7 @@ from pathlib import Path
|
|
|
25
25
|
|
|
26
26
|
class CfgSParameterModel:
|
|
27
27
|
def __init__(self, pdata, path_lib, sparam_dict):
|
|
28
|
-
self._pedb = pdata.
|
|
28
|
+
self._pedb = pdata._pedb
|
|
29
29
|
self.path_libraries = path_lib
|
|
30
30
|
self._sparam_dict = sparam_dict
|
|
31
31
|
self.name = self._sparam_dict.get("name", "")
|
|
@@ -25,7 +25,7 @@ from pathlib import Path
|
|
|
25
25
|
|
|
26
26
|
class CfgSpiceModel:
|
|
27
27
|
def __init__(self, pdata, path_lib, spice_dict):
|
|
28
|
-
self._pedb = pdata.
|
|
28
|
+
self._pedb = pdata._pedb
|
|
29
29
|
self.path_libraries = path_lib
|
|
30
30
|
self._spice_dict = spice_dict
|
|
31
31
|
self.name = self._spice_dict.get("name", "")
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 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
|
+
|
|
23
|
+
|
|
24
|
+
from pyedb.generic.general_methods import pyedb_function_handler
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class CfgStackup:
|
|
28
|
+
def __init__(self, pedb, data):
|
|
29
|
+
self._pedb = pedb
|
|
30
|
+
|
|
31
|
+
self.materials = [CfgMaterial(self._pedb, **mat) for mat in data.get("materials", [])]
|
|
32
|
+
self.layers = [CfgLayer(self._pedb, **lay) for lay in data.get("layers", [])]
|
|
33
|
+
|
|
34
|
+
@pyedb_function_handler
|
|
35
|
+
def apply(self):
|
|
36
|
+
"""Apply configuration settings to the current design"""
|
|
37
|
+
if len(self.materials):
|
|
38
|
+
self.__apply_materials()
|
|
39
|
+
if len(self.layers):
|
|
40
|
+
self.__apply_layers()
|
|
41
|
+
|
|
42
|
+
@pyedb_function_handler
|
|
43
|
+
def __apply_layers(self):
|
|
44
|
+
"""Apply layer settings to the current design"""
|
|
45
|
+
layers = list()
|
|
46
|
+
layers.extend(self.layers)
|
|
47
|
+
input_signal_layers = [i for i in layers if i.type.lower() == "signal"]
|
|
48
|
+
if not len(input_signal_layers) == len(self._pedb.stackup.signal_layers):
|
|
49
|
+
self._pedb.logger.error("Input signal layer count do not match.")
|
|
50
|
+
return False
|
|
51
|
+
|
|
52
|
+
removal_list = []
|
|
53
|
+
lc_signal_layers = []
|
|
54
|
+
for name, obj in self._pedb.stackup.all_layers.items():
|
|
55
|
+
if obj.type == "dielectric":
|
|
56
|
+
removal_list.append(name)
|
|
57
|
+
elif obj.type == "signal":
|
|
58
|
+
lc_signal_layers.append(obj.id)
|
|
59
|
+
for l in removal_list:
|
|
60
|
+
self._pedb.stackup.remove_layer(l)
|
|
61
|
+
|
|
62
|
+
# update all signal layers
|
|
63
|
+
id_name = {i[0]: i[1] for i in self._pedb.stackup.layers_by_id}
|
|
64
|
+
signal_idx = 0
|
|
65
|
+
for l in layers:
|
|
66
|
+
if l.type == "signal":
|
|
67
|
+
layer_id = lc_signal_layers[signal_idx]
|
|
68
|
+
layer_name = id_name[layer_id]
|
|
69
|
+
attrs = {
|
|
70
|
+
i: j for i, j in l.__dict__.items() if not i.startswith("_") and isinstance(j, (int, float, str))
|
|
71
|
+
}
|
|
72
|
+
self._pedb.stackup.layers[layer_name].update(**attrs)
|
|
73
|
+
signal_idx = signal_idx + 1
|
|
74
|
+
|
|
75
|
+
# add all dielectric layers. Dielectric layers must be added last. Otherwise,
|
|
76
|
+
# dielectric layer will occupy signal and document layer id.
|
|
77
|
+
prev_layer_clone = None
|
|
78
|
+
l = layers.pop(0)
|
|
79
|
+
if l.type == "signal":
|
|
80
|
+
prev_layer_clone = self._pedb.stackup.layers[l.name]
|
|
81
|
+
else:
|
|
82
|
+
attrs = {i: j for i, j in l.__dict__.items() if not i.startswith("_") and isinstance(j, (int, float, str))}
|
|
83
|
+
prev_layer_clone = self._pedb.stackup.add_layer_top(**attrs)
|
|
84
|
+
for idx, l in enumerate(layers):
|
|
85
|
+
if l.type == "dielectric":
|
|
86
|
+
attrs = {
|
|
87
|
+
i: j for i, j in l.__dict__.items() if not i.startswith("_") and isinstance(j, (int, float, str))
|
|
88
|
+
}
|
|
89
|
+
prev_layer_clone = self._pedb.stackup.add_layer_below(base_layer_name=prev_layer_clone.name, **attrs)
|
|
90
|
+
elif l.type == "signal":
|
|
91
|
+
prev_layer_clone = self._pedb.stackup.layers[l.name]
|
|
92
|
+
|
|
93
|
+
@pyedb_function_handler
|
|
94
|
+
def __apply_materials(self):
|
|
95
|
+
"""Apply material settings to the current design"""
|
|
96
|
+
materials_in_db = {i.lower(): i for i, _ in self._pedb.materials.materials.items()}
|
|
97
|
+
for mat_in_cfg in self.materials:
|
|
98
|
+
if mat_in_cfg.name.lower() in materials_in_db:
|
|
99
|
+
self._pedb.materials.delete_material(materials_in_db[mat_in_cfg.name.lower()])
|
|
100
|
+
|
|
101
|
+
attrs = {
|
|
102
|
+
i: j
|
|
103
|
+
for i, j in mat_in_cfg.__dict__.items()
|
|
104
|
+
if not i.startswith("_") and isinstance(j, (int, float, str))
|
|
105
|
+
}
|
|
106
|
+
mat = self._pedb.materials.add_material(**attrs)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
class CfgMaterial:
|
|
110
|
+
def __init__(self, pedb, **kwargs):
|
|
111
|
+
self._pedb = pedb
|
|
112
|
+
self.name = kwargs.get("name")
|
|
113
|
+
self.permittivity = kwargs.get("permittivity", None)
|
|
114
|
+
self.conductivity = kwargs.get("conductivity", None)
|
|
115
|
+
self.dielectric_loss_tangent = kwargs.get("dielectric_loss_tangent", None)
|
|
116
|
+
self.magnetic_loss_tangent = kwargs.get("magnetic_loss_tangent", None)
|
|
117
|
+
self.mass_density = kwargs.get("mass_density", None)
|
|
118
|
+
self.permeability = kwargs.get("permeability", None)
|
|
119
|
+
self.poisson_ratio = kwargs.get("poisson_ratio", None)
|
|
120
|
+
self.specific_heat = kwargs.get("specific_heat", None)
|
|
121
|
+
self.thermal_conductivity = kwargs.get("thermal_conductivity", None)
|
|
122
|
+
self.youngs_modulus = kwargs.get("youngs_modulus", None)
|
|
123
|
+
self.thermal_expansion_coefficient = kwargs.get("thermal_expansion_coefficient", None)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
class CfgLayer:
|
|
127
|
+
def __init__(self, pedb, **kwargs):
|
|
128
|
+
self._pedb = pedb
|
|
129
|
+
self.name = kwargs.get("name", None)
|
|
130
|
+
self.type = kwargs.get("type", None)
|
|
131
|
+
self.material = kwargs.get("material", None)
|
|
132
|
+
self.fill_material = kwargs.get("fill_material", None)
|
|
133
|
+
self.thickness = kwargs.get("thickness", None)
|
|
134
|
+
self.etch_factor = kwargs.get("etch_factor", None)
|
|
135
|
+
self.lower_elevation = kwargs.get("lower_elevation", None)
|
|
@@ -27,7 +27,6 @@ import toml
|
|
|
27
27
|
|
|
28
28
|
from pyedb.configuration.cfg_data import CfgData
|
|
29
29
|
from pyedb.dotnet.edb_core.definition.package_def import PackageDef
|
|
30
|
-
from pyedb.dotnet.edb_core.stackup import LayerCollection
|
|
31
30
|
from pyedb.generic.general_methods import pyedb_function_handler
|
|
32
31
|
|
|
33
32
|
|
|
@@ -133,8 +132,6 @@ class Configuration:
|
|
|
133
132
|
port.create()
|
|
134
133
|
|
|
135
134
|
# Configure sources
|
|
136
|
-
"""if "sources" in self.data:
|
|
137
|
-
self._load_sources()"""
|
|
138
135
|
for source in self.cfg_data.sources:
|
|
139
136
|
source.create()
|
|
140
137
|
|
|
@@ -143,8 +140,7 @@ class Configuration:
|
|
|
143
140
|
setup.apply()
|
|
144
141
|
|
|
145
142
|
# Configure stackup
|
|
146
|
-
|
|
147
|
-
self._load_stackup()
|
|
143
|
+
self.cfg_data.stackup.apply()
|
|
148
144
|
|
|
149
145
|
# Configure S-parameter
|
|
150
146
|
for s_parameter_model in self.cfg_data.s_parameters:
|
|
@@ -182,56 +178,44 @@ class Configuration:
|
|
|
182
178
|
layers = data.get("layers")
|
|
183
179
|
|
|
184
180
|
if layers:
|
|
185
|
-
lc = self._pedb.stackup
|
|
186
181
|
input_signal_layers = [i for i in layers if i["type"].lower() == "signal"]
|
|
187
|
-
if not len(input_signal_layers) == len(
|
|
182
|
+
if not len(input_signal_layers) == len(self._pedb.stackup.signal_layers):
|
|
188
183
|
self._pedb.logger.error("Input signal layer count do not match.")
|
|
189
184
|
return False
|
|
190
185
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
for name, obj in
|
|
194
|
-
if obj.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
# add all signal layers
|
|
186
|
+
removal_list = []
|
|
187
|
+
lc_signal_layers = []
|
|
188
|
+
for name, obj in self._pedb.stackup.all_layers.items():
|
|
189
|
+
if obj.type == "dielectric":
|
|
190
|
+
removal_list.append(name)
|
|
191
|
+
elif obj.type == "signal":
|
|
192
|
+
lc_signal_layers.append(obj.id)
|
|
193
|
+
for l in removal_list:
|
|
194
|
+
self._pedb.stackup.remove_layer(l)
|
|
195
|
+
|
|
196
|
+
# update all signal layers
|
|
197
|
+
id_name = {i[0]: i[1] for i in self._pedb.stackup.layers_by_id}
|
|
198
|
+
signal_idx = 0
|
|
206
199
|
for l in layers:
|
|
207
200
|
if l["type"] == "signal":
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
# add all document layers at bottom
|
|
214
|
-
for l in doc_layer_clones:
|
|
215
|
-
doc_layer = lc_new.add_document_layer(name=l.name, layer_clone=l)
|
|
216
|
-
first_doc_layer_name = doc_layer.name
|
|
201
|
+
layer_id = lc_signal_layers[signal_idx]
|
|
202
|
+
layer_name = id_name[layer_id]
|
|
203
|
+
self._pedb.stackup.layers[layer_name].update(**l)
|
|
204
|
+
signal_idx = signal_idx + 1
|
|
217
205
|
|
|
218
206
|
# add all dielectric layers. Dielectric layers must be added last. Otherwise,
|
|
219
207
|
# dielectric layer will occupy signal and document layer id.
|
|
220
208
|
prev_layer_clone = None
|
|
221
209
|
l = layers.pop(0)
|
|
222
210
|
if l["type"] == "signal":
|
|
223
|
-
prev_layer_clone =
|
|
211
|
+
prev_layer_clone = self._pedb.stackup.layers[l["name"]]
|
|
224
212
|
else:
|
|
225
|
-
prev_layer_clone =
|
|
213
|
+
prev_layer_clone = self._pedb.stackup.add_layer_top(**l)
|
|
226
214
|
for idx, l in enumerate(layers):
|
|
227
215
|
if l["type"] == "dielectric":
|
|
228
|
-
prev_layer_clone =
|
|
229
|
-
|
|
230
|
-
prev_layer_clone =
|
|
231
|
-
|
|
232
|
-
lc._edb_object = lc_new._edb_object
|
|
233
|
-
lc_new.auto_refresh = True
|
|
234
|
-
lc.update_layout()
|
|
216
|
+
prev_layer_clone = self._pedb.stackup.add_layer_below(base_layer_name=prev_layer_clone.name, **l)
|
|
217
|
+
elif l["type"] == "signal":
|
|
218
|
+
prev_layer_clone = self._pedb.stackup.layers[l["name"]]
|
|
235
219
|
|
|
236
220
|
@pyedb_function_handler
|
|
237
221
|
def _load_operations(self):
|
|
@@ -846,9 +846,7 @@ class Edb(Database):
|
|
|
846
846
|
>>> edbapp.stackup.layers["TOP"].thickness == 4e-05
|
|
847
847
|
>>> edbapp.stackup.add_layer("Diel", "GND", layer_type="dielectric", thickness="0.1mm", material="FR4_epoxy")
|
|
848
848
|
"""
|
|
849
|
-
|
|
850
|
-
self._stackup2 = Stackup(self, self.layout.layer_collection)
|
|
851
|
-
return self._stackup2
|
|
849
|
+
return Stackup(self, self.layout.layer_collection)
|
|
852
850
|
|
|
853
851
|
@property
|
|
854
852
|
def materials(self):
|
|
@@ -257,8 +257,8 @@ class StackupLayerEdbClass(LayerEdbClass):
|
|
|
257
257
|
self._lower_elevation = 0.0
|
|
258
258
|
|
|
259
259
|
def _create(self, layer_type):
|
|
260
|
-
|
|
261
|
-
layer_type = self._layer_type_mapping[
|
|
260
|
+
layer_type_edb_name = self._layer_name_mapping[layer_type]
|
|
261
|
+
layer_type = self._layer_type_mapping[layer_type_edb_name]
|
|
262
262
|
self._edb_object = self._pedb.edb_api.cell._cell.StackupLayer(
|
|
263
263
|
self._name,
|
|
264
264
|
layer_type,
|