pyedb 0.15.dev0__tar.gz → 0.16.0__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.15.dev0 → pyedb-0.16.0}/PKG-INFO +1 -1
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/__init__.py +1 -1
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_common.py +1 -3
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_components.py +4 -6
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_data.py +3 -6
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_package_definition.py +3 -5
- pyedb-0.16.0/src/pyedb/configuration/cfg_setup.py +239 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_stackup.py +4 -4
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/configuration.py +7 -5
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb.py +24 -10
- pyedb-0.16.0/src/pyedb/dotnet/edb_core/cell/voltage_regulator.py +148 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/layout.py +4 -1
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/mesh_operation.py +63 -49
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/settings.py +1 -1
- pyedb-0.16.0/src/pyedb/dotnet/edb_core/sim_setup_data/data/sim_setup_info.py +81 -0
- pyedb-0.16.0/src/pyedb/dotnet/edb_core/sim_setup_data/data/simulation_settings.py +67 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/sweep_data.py +131 -96
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/siwave.py +49 -0
- pyedb-0.16.0/src/pyedb/dotnet/edb_core/utilities/hfss_simulation_setup.py +386 -0
- pyedb-0.16.0/src/pyedb/dotnet/edb_core/utilities/simulation_setup.py +347 -0
- pyedb-0.16.0/src/pyedb/dotnet/edb_core/utilities/siwave_simulation_setup.py +369 -0
- pyedb-0.16.0/src/pyedb/misc/siw_feature_config/emc/__init__.py +0 -0
- pyedb-0.15.dev0/src/pyedb/configuration/cfg_setup.py +0 -201
- pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/utilities/simulation_setup.py +0 -1011
- {pyedb-0.15.dev0 → pyedb-0.16.0}/LICENSE +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/README.md +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/pyproject.toml +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_boundaries.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_general.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_nets.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_operations.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_padstacks.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_pin_groups.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_ports_sources.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_s_parameter_models.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/configuration/cfg_spice_models.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/application/Variables.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/application/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/clr_module.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/__init__.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/cell/hierarchy → pyedb-0.16.0/src/pyedb/dotnet/edb_core/cell}/__init__.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/cell/terminal → pyedb-0.16.0/src/pyedb/dotnet/edb_core/cell/hierarchy}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/component.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/netlist_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/pin_pair_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/s_parameter_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/spice_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/layout.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/layout_obj.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/primitive.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/definition → pyedb-0.16.0/src/pyedb/dotnet/edb_core/cell/terminal}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/terminal/bundle_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/terminal/edge_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/terminal/padstack_instance_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/terminal/pingroup_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/terminal/point_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/cell/terminal/terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/components.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/dotnet → pyedb-0.16.0/src/pyedb/dotnet/edb_core/definition}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/definition/component_def.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/definition/component_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/definition/definition_obj.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/definition/definitions.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/definition/package_def.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/edb_data → pyedb-0.16.0/src/pyedb/dotnet/edb_core/dotnet}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/dotnet/database.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/dotnet/layout.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/dotnet/primitive.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/geometry → pyedb-0.16.0/src/pyedb/dotnet/edb_core/edb_data}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/control_file.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/design_options.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/edbvalue.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/hfss_extent_info.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/hfss_pi_simulation_setup_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/layer_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/nets_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/padstacks_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/ports.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/primitives_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/raptor_x_simulation_setup_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/simulation_configuration.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/sources.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/utilities.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/edb_data/variables.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/general.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/sim_setup_data/io → pyedb-0.16.0/src/pyedb/dotnet/edb_core/geometry}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/geometry/point_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/geometry/polygon_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/hfss.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/layout_validation.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/materials.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/net_class.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/nets.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/padstack.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/sim_setup_data/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/adaptive_frequency_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/siw_dc_ir_settings.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/generic → pyedb-0.16.0/src/pyedb/dotnet/edb_core/sim_setup_data/io}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/sim_setup_data/io/siwave.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/stackup.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/utilities/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/utilities/heatsink.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/dotnet/edb_core/utilities/obj_base.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/edb_logger.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/exceptions.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581 → pyedb-0.16.0/src/pyedb/generic}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/generic/constants.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/generic/data_handlers.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/generic/design_types.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/generic/filesystem.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/generic/general_methods.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/generic/plot.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/generic/process.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/generic/settings.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581/bom → pyedb-0.16.0/src/pyedb/ipc2581}/__init__.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581/content → pyedb-0.16.0/src/pyedb/ipc2581/bom}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/bom/bom.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/bom/bom_item.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/bom/characteristics.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/bom/refdes.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581/ecad → pyedb-0.16.0/src/pyedb/ipc2581/content}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/color.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/content.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/dictionary_color.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/dictionary_fill.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/dictionary_line.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/entry_color.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/entry_line.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/fill.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/layer_ref.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/content/standard_geometries_dictionary.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581/ecad/cad_data → pyedb-0.16.0/src/pyedb/ipc2581/ecad}/__init__.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/misc → pyedb-0.16.0/src/pyedb/ipc2581/ecad/cad_data}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/assembly_drawing.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/cad_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/component.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/drill.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/feature.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/layer.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/layer_feature.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/logical_net.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/outline.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/package.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_def.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_hole_def.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_instance.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_pad_def.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/path.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/phy_net.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/pin.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/polygon.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/profile.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/stackup.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/stackup_group.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/stackup_layer.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_data/step.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/cad_header.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/ecad.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ecad/spec.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/history_record.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/ipc2581.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/ipc2581/logistic_header.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/misc/siw_feature_config → pyedb-0.16.0/src/pyedb/misc}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/aedtlib_personalib_install.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/downloads.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/misc.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/pyedb.runtimeconfig.json +0 -0
- {pyedb-0.15.dev0/src/pyedb/misc/siw_feature_config/emc → pyedb-0.16.0/src/pyedb/misc/siw_feature_config}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/siw_feature_config/emc/component_tags.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/siw_feature_config/emc/net_tags.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/siw_feature_config/emc/tag_library.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/siw_feature_config/emc/xml_generic.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/siw_feature_config/emc_rule_checker_settings.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/misc/utilities.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/modeler/geometry_operators.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/siwave.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.16.0}/src/pyedb/siwave_core/icepak.py +0 -0
|
@@ -51,6 +51,8 @@ class CfgRlcModel(CfgBase):
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
class CfgComponent(CfgBase):
|
|
54
|
+
protected_attributes = ["reference_designator"]
|
|
55
|
+
|
|
54
56
|
def __init__(self, **kwargs):
|
|
55
57
|
self.enabled = kwargs.get("enabled", None)
|
|
56
58
|
|
|
@@ -65,15 +67,11 @@ class CfgComponent(CfgBase):
|
|
|
65
67
|
|
|
66
68
|
self.rlc_model = [CfgRlcModel(**rlc_m) for rlc_m in rlc_models]
|
|
67
69
|
|
|
68
|
-
@property
|
|
69
|
-
def protected_attributes(self):
|
|
70
|
-
return ["reference_designator"]
|
|
71
|
-
|
|
72
70
|
|
|
73
71
|
class CfgComponents:
|
|
74
|
-
def __init__(self, pedb,
|
|
72
|
+
def __init__(self, pedb, components_data):
|
|
75
73
|
self._pedb = pedb
|
|
76
|
-
self.components = [CfgComponent(**comp) for comp in
|
|
74
|
+
self.components = [CfgComponent(**comp) for comp in components_data]
|
|
77
75
|
|
|
78
76
|
def apply(self):
|
|
79
77
|
comps_in_db = self._pedb.components
|
|
@@ -31,7 +31,7 @@ from pyedb.configuration.cfg_padstacks import CfgPadstacks
|
|
|
31
31
|
from pyedb.configuration.cfg_pin_groups import CfgPinGroup
|
|
32
32
|
from pyedb.configuration.cfg_ports_sources import CfgPort, CfgSources
|
|
33
33
|
from pyedb.configuration.cfg_s_parameter_models import CfgSParameterModel
|
|
34
|
-
from pyedb.configuration.cfg_setup import
|
|
34
|
+
from pyedb.configuration.cfg_setup import CfgSetups
|
|
35
35
|
from pyedb.configuration.cfg_spice_models import CfgSpiceModel
|
|
36
36
|
from pyedb.configuration.cfg_stackup import CfgStackup
|
|
37
37
|
|
|
@@ -54,8 +54,7 @@ class CfgData(object):
|
|
|
54
54
|
self, kwargs.get("nets", {}).get("signal_nets", []), kwargs.get("nets", {}).get("power_ground_nets", [])
|
|
55
55
|
)
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
self.components = CfgComponents(self._pedb, data=kwargs.get("components", []))
|
|
57
|
+
self.components = CfgComponents(self._pedb, components_data=kwargs.get("components", []))
|
|
59
58
|
|
|
60
59
|
self.padstacks = CfgPadstacks(self, kwargs.get("padstacks", None))
|
|
61
60
|
|
|
@@ -65,9 +64,7 @@ class CfgData(object):
|
|
|
65
64
|
|
|
66
65
|
self.sources = [CfgSources(self, **source) for source in kwargs.get("sources", [])]
|
|
67
66
|
|
|
68
|
-
self.setups = []
|
|
69
|
-
if kwargs.get("setups", None):
|
|
70
|
-
self.setups = [CfgSetup(self, setup) for setup in kwargs.get("setups", [])]
|
|
67
|
+
self.setups = CfgSetups(self._pedb, setups_data=kwargs.get("setups", []))
|
|
71
68
|
|
|
72
69
|
self.stackup = CfgStackup(self._pedb, data=kwargs.get("stackup", {}))
|
|
73
70
|
|
|
@@ -27,6 +27,9 @@ from pyedb.dotnet.edb_core.definition.package_def import PackageDef
|
|
|
27
27
|
class CfgPackage(CfgBase):
|
|
28
28
|
"""Configuration package class."""
|
|
29
29
|
|
|
30
|
+
# Attributes cannot be set to package definition class or don't exist in package definition class.
|
|
31
|
+
protected_attributes = ["apply_to_all", "components", "extent_bounding_box", "component_definition"]
|
|
32
|
+
|
|
30
33
|
def __init__(self, **kwargs):
|
|
31
34
|
self.name = kwargs.get("name", None)
|
|
32
35
|
self.component_definition = kwargs.get("component_definition", None)
|
|
@@ -48,11 +51,6 @@ class CfgPackage(CfgBase):
|
|
|
48
51
|
def heatsink(self, value):
|
|
49
52
|
self._heatsink = value
|
|
50
53
|
|
|
51
|
-
@property
|
|
52
|
-
def protected_attributes(self):
|
|
53
|
-
"""Attributes cannot be set to package definition class or don't exist in package definition class."""
|
|
54
|
-
return ["apply_to_all", "components", "extent_bounding_box", "component_definition"]
|
|
55
|
-
|
|
56
54
|
|
|
57
55
|
class CfgHeatSink(CfgBase):
|
|
58
56
|
"""Configuration heat sink class."""
|
|
@@ -0,0 +1,239 @@
|
|
|
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
|
+
from pyedb.configuration.cfg_common import CfgBase
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class CfgFrequencies(CfgBase):
|
|
27
|
+
def __init__(self, **kwargs):
|
|
28
|
+
self.distribution = kwargs.get("distribution").replace(" ", "_") if kwargs.get("distribution") else None
|
|
29
|
+
self.start = kwargs.get("start")
|
|
30
|
+
self.stop = kwargs.get("stop")
|
|
31
|
+
self.increment = kwargs.get("increment", kwargs.get("points", kwargs.get("samples", kwargs.get("step"))))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class CfgSweepData(CfgBase):
|
|
35
|
+
def __init__(self, **kwargs):
|
|
36
|
+
self.name = kwargs.get("name")
|
|
37
|
+
self.type = kwargs.get("type").lower() if kwargs.get("type") else None
|
|
38
|
+
self.frequencies = []
|
|
39
|
+
for kw in kwargs.get("frequencies", []):
|
|
40
|
+
self.frequencies.append(CfgFrequencies(**kw))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class CfgSetup(CfgBase):
|
|
44
|
+
def __init__(self, pedb, **kwargs):
|
|
45
|
+
self._pedb = pedb
|
|
46
|
+
self.name = kwargs.get("name")
|
|
47
|
+
self.type = kwargs.get("type").lower() if kwargs.get("type") else None
|
|
48
|
+
|
|
49
|
+
self.freq_sweep = []
|
|
50
|
+
for i in kwargs.get("freq_sweep", []):
|
|
51
|
+
self.freq_sweep.append(CfgSweepData(**i))
|
|
52
|
+
|
|
53
|
+
def _apply_freq_sweep(self, edb_setup):
|
|
54
|
+
for i in self.freq_sweep:
|
|
55
|
+
f_set = []
|
|
56
|
+
kw = {}
|
|
57
|
+
for attr in i.get_attributes(exclude="name"):
|
|
58
|
+
if attr == "frequencies":
|
|
59
|
+
for f in i.frequencies:
|
|
60
|
+
f_set.append([f.distribution, f.start, f.stop, f.increment])
|
|
61
|
+
else:
|
|
62
|
+
kw[attr] = getattr(i, attr)
|
|
63
|
+
edb_setup.add_sweep(i.name, frequency_set=f_set, **kw)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class CfgSIwaveACSetup(CfgSetup):
|
|
67
|
+
def __init__(self, pedb, **kwargs):
|
|
68
|
+
super().__init__(pedb, **kwargs)
|
|
69
|
+
self.si_slider_position = kwargs.get("si_slider_position")
|
|
70
|
+
self.pi_slider_position = kwargs.get("pi_slider_position")
|
|
71
|
+
|
|
72
|
+
def apply(self):
|
|
73
|
+
if self.name in self._pedb.setups:
|
|
74
|
+
raise "Setup {} already existing. Editing it.".format(self.name)
|
|
75
|
+
|
|
76
|
+
kwargs = (
|
|
77
|
+
{"si_slider_position": self.si_slider_position}
|
|
78
|
+
if self.si_slider_position is not None
|
|
79
|
+
else {"pi_slider_position": self.pi_slider_position}
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
edb_setup = self._pedb.create_siwave_syz_setup(name=self.name, **kwargs)
|
|
83
|
+
self._apply_freq_sweep(edb_setup)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class CfgSIwaveDCSetup(CfgSetup):
|
|
87
|
+
def __init__(self, pedb, **kwargs):
|
|
88
|
+
super().__init__(pedb, **kwargs)
|
|
89
|
+
self.dc_slider_position = kwargs.get("dc_slider_position")
|
|
90
|
+
self.dc_ir_settings = CfgDcIrSettings(**kwargs.get("dc_ir_settings", {}))
|
|
91
|
+
self.freq_sweep = None
|
|
92
|
+
|
|
93
|
+
def apply(self):
|
|
94
|
+
edb_setup = self._pedb.create_siwave_dc_setup(name=self.name, dc_slider_position=self.dc_slider_position)
|
|
95
|
+
for k, v in self.dc_ir_settings.get_attributes().items():
|
|
96
|
+
if k == "dc_slider_postion":
|
|
97
|
+
edb_setup.dc_settings.dc_slider_position = v
|
|
98
|
+
else:
|
|
99
|
+
setattr(edb_setup.dc_ir_settings, k, v)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class CfgHFSSSetup(CfgSetup):
|
|
103
|
+
def __init__(self, pedb, **kwargs):
|
|
104
|
+
super().__init__(pedb, **kwargs)
|
|
105
|
+
|
|
106
|
+
self.f_adapt = kwargs.get("f_adapt")
|
|
107
|
+
self.max_num_passes = kwargs.get("max_num_passes")
|
|
108
|
+
self.max_mag_delta_s = kwargs.get("max_mag_delta_s")
|
|
109
|
+
|
|
110
|
+
self.mesh_operations = []
|
|
111
|
+
for i in kwargs.get("mesh_operations", []):
|
|
112
|
+
self.mesh_operations.append(CfgLengthMeshOperation(**i))
|
|
113
|
+
|
|
114
|
+
def apply(self):
|
|
115
|
+
if self.name in self._pedb.setups:
|
|
116
|
+
raise "Setup {} already existing. Editing it.".format(self.name)
|
|
117
|
+
|
|
118
|
+
edb_setup = self._pedb.create_hfss_setup(self.name)
|
|
119
|
+
edb_setup.set_solution_single_frequency(self.f_adapt, self.max_num_passes, self.max_mag_delta_s)
|
|
120
|
+
|
|
121
|
+
self._apply_freq_sweep(edb_setup)
|
|
122
|
+
|
|
123
|
+
for i in self.mesh_operations:
|
|
124
|
+
edb_setup.add_length_mesh_operation(
|
|
125
|
+
net_layer_list=i.nets_layers_list,
|
|
126
|
+
name=i.name,
|
|
127
|
+
# max_elements=i.max_elements,
|
|
128
|
+
max_length=i.max_length,
|
|
129
|
+
# restrict_elements=i.restrict_max_elements,
|
|
130
|
+
restrict_length=i.restrict_length,
|
|
131
|
+
refine_inside=i.refine_inside,
|
|
132
|
+
# mesh_region=i.mesh_region
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class CfgDcIrSettings(CfgBase):
|
|
137
|
+
def __init__(self, **kwargs):
|
|
138
|
+
self.export_dc_thermal_data = kwargs.get("export_dc_thermal_data")
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
class CfgMeshOperation(CfgBase):
|
|
142
|
+
def __init__(self, **kwargs):
|
|
143
|
+
self.name = kwargs.get("name")
|
|
144
|
+
self.type = kwargs.get("type")
|
|
145
|
+
# self.mesh_region = kwargs.get("mesh_region")
|
|
146
|
+
self.nets_layers_list = kwargs.get("nets_layers_list", {})
|
|
147
|
+
self.refine_inside = kwargs.get("refine_inside", False)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
class CfgLengthMeshOperation(CfgMeshOperation):
|
|
151
|
+
def __init__(self, **kwargs):
|
|
152
|
+
super().__init__(**kwargs)
|
|
153
|
+
|
|
154
|
+
# waiting bug review
|
|
155
|
+
# self.restrict_max_elements = kwargs.get("restrict_max_elements", True)
|
|
156
|
+
# self.max_elements = kwargs.get("max_elements", 1000)
|
|
157
|
+
self.restrict_length = kwargs.get("restrict_length", True)
|
|
158
|
+
self.max_length = kwargs.get("max_length", "1mm")
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
class CfgSetups:
|
|
162
|
+
def __init__(self, pedb, setups_data):
|
|
163
|
+
self._pedb = pedb
|
|
164
|
+
self.setups = []
|
|
165
|
+
for stp in setups_data:
|
|
166
|
+
if stp.get("type").lower() == "hfss":
|
|
167
|
+
self.setups.append(CfgHFSSSetup(self._pedb, **stp))
|
|
168
|
+
elif stp.get("type").lower() in ["siwave_ac", "siwave_syz"]:
|
|
169
|
+
self.setups.append(CfgSIwaveACSetup(self._pedb, **stp))
|
|
170
|
+
elif stp.get("type").lower() == "siwave_dc":
|
|
171
|
+
self.setups.append(CfgSIwaveDCSetup(self._pedb, **stp))
|
|
172
|
+
|
|
173
|
+
def apply(self):
|
|
174
|
+
for s in self.setups:
|
|
175
|
+
s.apply()
|
|
176
|
+
|
|
177
|
+
def get_data_from_db(self):
|
|
178
|
+
setups = []
|
|
179
|
+
for _, s in self._pedb.setups.items():
|
|
180
|
+
stp = {}
|
|
181
|
+
if s.type == "hfss":
|
|
182
|
+
for p_name in CfgHFSSSetup(self._pedb).__dict__:
|
|
183
|
+
if p_name.startswith("_"):
|
|
184
|
+
continue
|
|
185
|
+
elif p_name == "type":
|
|
186
|
+
stp[p_name] = s.type
|
|
187
|
+
elif p_name == "f_adapt":
|
|
188
|
+
stp[p_name] = list(s.adaptive_settings.adaptive_frequency_data_list)[0].adaptive_frequency
|
|
189
|
+
elif p_name == "max_num_passes":
|
|
190
|
+
stp[p_name] = list(s.adaptive_settings.adaptive_frequency_data_list)[0].max_passes
|
|
191
|
+
elif p_name == "max_mag_delta_s":
|
|
192
|
+
stp[p_name] = list(s.adaptive_settings.adaptive_frequency_data_list)[0].max_delta
|
|
193
|
+
elif p_name == "freq_sweep":
|
|
194
|
+
f_sweep = []
|
|
195
|
+
for _, sw in s.sweeps.items():
|
|
196
|
+
sweep_data = {}
|
|
197
|
+
for sw_p_name in CfgSweepData().__dict__:
|
|
198
|
+
if sw_p_name == "frequencies":
|
|
199
|
+
pass # Frequencies cannot be read from EDB
|
|
200
|
+
else:
|
|
201
|
+
sweep_data[sw_p_name] = getattr(sw, sw_p_name)
|
|
202
|
+
f_sweep.append(sweep_data)
|
|
203
|
+
stp["freq_sweep"] = f_sweep
|
|
204
|
+
elif p_name == "mesh_operations":
|
|
205
|
+
mops = []
|
|
206
|
+
for _, i in s.mesh_operations.items():
|
|
207
|
+
mop = {}
|
|
208
|
+
for mop_p_name in CfgLengthMeshOperation().__dict__:
|
|
209
|
+
mop[mop_p_name] = getattr(i, mop_p_name)
|
|
210
|
+
mops.append(mop)
|
|
211
|
+
stp["mesh_operations"] = mops
|
|
212
|
+
else:
|
|
213
|
+
stp[p_name] = getattr(s, p_name)
|
|
214
|
+
|
|
215
|
+
elif s.type == "siwave_ac":
|
|
216
|
+
for p_name in CfgSIwaveACSetup(self._pedb).__dict__:
|
|
217
|
+
if p_name.startswith("_"):
|
|
218
|
+
continue
|
|
219
|
+
elif p_name == "freq_sweep":
|
|
220
|
+
pass # Bug in EDB API
|
|
221
|
+
else:
|
|
222
|
+
stp[p_name] = getattr(s, p_name)
|
|
223
|
+
elif s.type == "siwave_dc":
|
|
224
|
+
for p_name in CfgSIwaveDCSetup(self._pedb).__dict__:
|
|
225
|
+
if p_name.startswith("_"):
|
|
226
|
+
continue
|
|
227
|
+
elif p_name == "freq_sweep":
|
|
228
|
+
pass
|
|
229
|
+
elif p_name == "dc_ir_settings":
|
|
230
|
+
dc_ir_s = {}
|
|
231
|
+
for dcir_p_name in CfgDcIrSettings().__dict__:
|
|
232
|
+
dc_ir_s[dcir_p_name] = getattr(s.dc_ir_settings, dcir_p_name)
|
|
233
|
+
stp["dc_ir_settings"] = dc_ir_s
|
|
234
|
+
elif p_name == "dc_slider_position":
|
|
235
|
+
stp[p_name] = getattr(s.dc_settings, p_name)
|
|
236
|
+
else:
|
|
237
|
+
stp[p_name] = getattr(s, p_name)
|
|
238
|
+
setups.append(stp)
|
|
239
|
+
return setups
|
|
@@ -127,7 +127,7 @@ class CfgStackup:
|
|
|
127
127
|
attrs = mat_in_cfg.get_attributes()
|
|
128
128
|
mat = self._pedb.materials.add_material(**attrs)
|
|
129
129
|
|
|
130
|
-
def
|
|
130
|
+
def get_materials_from_db(self):
|
|
131
131
|
materials = []
|
|
132
132
|
for name, p in self._pedb.materials.materials.items():
|
|
133
133
|
mat = {}
|
|
@@ -136,7 +136,7 @@ class CfgStackup:
|
|
|
136
136
|
materials.append(mat)
|
|
137
137
|
return materials
|
|
138
138
|
|
|
139
|
-
def
|
|
139
|
+
def get_layers_from_db(self):
|
|
140
140
|
layers = []
|
|
141
141
|
for name, obj in self._pedb.stackup.all_layers.items():
|
|
142
142
|
layer = {}
|
|
@@ -155,8 +155,8 @@ class CfgStackup:
|
|
|
155
155
|
dict
|
|
156
156
|
"""
|
|
157
157
|
stackup = {}
|
|
158
|
-
materials = self.
|
|
158
|
+
materials = self.get_materials_from_db()
|
|
159
159
|
stackup["materials"] = materials
|
|
160
|
-
layers = self.
|
|
160
|
+
layers = self.get_layers_from_db()
|
|
161
161
|
stackup["layers"] = layers
|
|
162
162
|
return stackup
|
|
@@ -131,9 +131,8 @@ class Configuration:
|
|
|
131
131
|
for source in self.cfg_data.sources:
|
|
132
132
|
source.create()
|
|
133
133
|
|
|
134
|
-
# Configure
|
|
135
|
-
|
|
136
|
-
setup.apply()
|
|
134
|
+
# Configure setup
|
|
135
|
+
self.cfg_data.setups.apply()
|
|
137
136
|
|
|
138
137
|
# Configure stackup
|
|
139
138
|
self.cfg_data.stackup.apply()
|
|
@@ -264,15 +263,18 @@ class Configuration:
|
|
|
264
263
|
-------
|
|
265
264
|
|
|
266
265
|
"""
|
|
266
|
+
self._pedb.logger.info("Getting data from layout database.")
|
|
267
267
|
data = {}
|
|
268
268
|
if kwargs.get("stackup", False):
|
|
269
269
|
data["stackup"] = self.cfg_data.stackup.get_data_from_db()
|
|
270
270
|
if kwargs.get("package_definitions", False):
|
|
271
271
|
data["package_definitions"] = self.cfg_data.package_definitions.get_data_from_db()
|
|
272
|
+
if kwargs.get("setups", False):
|
|
273
|
+
data["setups"] = self.cfg_data.setups.get_data_from_db()
|
|
272
274
|
|
|
273
275
|
return data
|
|
274
276
|
|
|
275
|
-
def export(self, file_path, stackup=True, package_definitions=True):
|
|
277
|
+
def export(self, file_path, stackup=True, package_definitions=True, setups=True):
|
|
276
278
|
"""Export the configuration data from layout to a file.
|
|
277
279
|
|
|
278
280
|
Parameters
|
|
@@ -288,7 +290,7 @@ class Configuration:
|
|
|
288
290
|
"""
|
|
289
291
|
file_path = file_path if isinstance(file_path, Path) else Path(file_path)
|
|
290
292
|
file_path = file_path if file_path.suffix == ".json" else file_path.with_suffix(".json")
|
|
291
|
-
data = self.get_data_from_db(stackup=stackup, package_definitions=package_definitions)
|
|
293
|
+
data = self.get_data_from_db(stackup=stackup, package_definitions=package_definitions, setups=setups)
|
|
292
294
|
with open(file_path, "w") as f:
|
|
293
295
|
json.dump(data, f, ensure_ascii=False, indent=4)
|
|
294
296
|
return True if os.path.isfile(file_path) else False
|
|
@@ -48,6 +48,7 @@ from pyedb.dotnet.edb_core.cell.terminal.padstack_instance_terminal import (
|
|
|
48
48
|
from pyedb.dotnet.edb_core.cell.terminal.pingroup_terminal import PinGroupTerminal
|
|
49
49
|
from pyedb.dotnet.edb_core.cell.terminal.point_terminal import PointTerminal
|
|
50
50
|
from pyedb.dotnet.edb_core.cell.terminal.terminal import Terminal
|
|
51
|
+
from pyedb.dotnet.edb_core.cell.voltage_regulator import VoltageRegulator
|
|
51
52
|
from pyedb.dotnet.edb_core.components import Components
|
|
52
53
|
from pyedb.dotnet.edb_core.dotnet.database import Database
|
|
53
54
|
from pyedb.dotnet.edb_core.dotnet.layout import LayoutDotNet
|
|
@@ -93,10 +94,10 @@ from pyedb.dotnet.edb_core.nets import EdbNets
|
|
|
93
94
|
from pyedb.dotnet.edb_core.padstack import EdbPadstacks
|
|
94
95
|
from pyedb.dotnet.edb_core.siwave import EdbSiwave
|
|
95
96
|
from pyedb.dotnet.edb_core.stackup import Stackup
|
|
96
|
-
from pyedb.dotnet.edb_core.utilities.
|
|
97
|
-
|
|
97
|
+
from pyedb.dotnet.edb_core.utilities.hfss_simulation_setup import HfssSimulationSetup
|
|
98
|
+
from pyedb.dotnet.edb_core.utilities.siwave_simulation_setup import (
|
|
98
99
|
SiwaveDCSimulationSetup,
|
|
99
|
-
|
|
100
|
+
SiwaveSimulationSetup,
|
|
100
101
|
)
|
|
101
102
|
from pyedb.generic.constants import AEDT_UNITS, SolverType
|
|
102
103
|
from pyedb.generic.general_methods import (
|
|
@@ -510,6 +511,15 @@ class Edb(Database):
|
|
|
510
511
|
terms = [term for term in self.layout.terminals if int(term.GetBoundaryType()) in [3, 4, 7]]
|
|
511
512
|
return {ter.GetName(): ExcitationSources(self, ter) for ter in terms}
|
|
512
513
|
|
|
514
|
+
@property
|
|
515
|
+
def voltage_regulator_modules(self):
|
|
516
|
+
"""Get all voltage regulator modules"""
|
|
517
|
+
vrms = [VoltageRegulator(self, edb_object) for edb_object in list(self.active_layout.VoltageRegulators)]
|
|
518
|
+
_vrms = {}
|
|
519
|
+
for vrm in vrms:
|
|
520
|
+
_vrms[vrm.GetName()] = vrm
|
|
521
|
+
return _vrms
|
|
522
|
+
|
|
513
523
|
@property
|
|
514
524
|
def probes(self):
|
|
515
525
|
"""Get all layout probes."""
|
|
@@ -3556,7 +3566,7 @@ class Edb(Database):
|
|
|
3556
3566
|
if i.GetType() == self.edb_api.utility.utility.SimulationSetupType.kHFSS:
|
|
3557
3567
|
setups[i.GetName()] = HfssSimulationSetup(self, i)
|
|
3558
3568
|
elif i.GetType() == self.edb_api.utility.utility.SimulationSetupType.kSIWave:
|
|
3559
|
-
setups[i.GetName()] =
|
|
3569
|
+
setups[i.GetName()] = SiwaveSimulationSetup(self, i)
|
|
3560
3570
|
elif i.GetType() == self.edb_api.utility.utility.SimulationSetupType.kSIWaveDCIR:
|
|
3561
3571
|
setups[i.GetName()] = SiwaveDCSimulationSetup(self, i)
|
|
3562
3572
|
elif i.GetType() == self.edb_api.utility.utility.SimulationSetupType.kRaptorX:
|
|
@@ -3594,7 +3604,7 @@ class Edb(Database):
|
|
|
3594
3604
|
-------
|
|
3595
3605
|
Dict[str, :class:`legacy.edb_core.edb_data.siwave_simulation_setup_data.SiwaveSYZSimulationSetup`]
|
|
3596
3606
|
"""
|
|
3597
|
-
return {name: i for name, i in self.setups.items() if isinstance(i,
|
|
3607
|
+
return {name: i for name, i in self.setups.items() if isinstance(i, SiwaveSimulationSetup)}
|
|
3598
3608
|
|
|
3599
3609
|
def create_hfss_setup(self, name=None):
|
|
3600
3610
|
"""Create an HFSS simulation setup from a template.
|
|
@@ -3620,7 +3630,7 @@ class Edb(Database):
|
|
|
3620
3630
|
return False
|
|
3621
3631
|
elif not name:
|
|
3622
3632
|
name = generate_unique_name("setup")
|
|
3623
|
-
setup = HfssSimulationSetup(self
|
|
3633
|
+
setup = HfssSimulationSetup(self, name=name)
|
|
3624
3634
|
setup.set_solution_single_frequency("1GΗz")
|
|
3625
3635
|
return setup
|
|
3626
3636
|
|
|
@@ -3671,7 +3681,7 @@ class Edb(Database):
|
|
|
3671
3681
|
return False
|
|
3672
3682
|
return HFSSPISimulationSetup(self).create(name)
|
|
3673
3683
|
|
|
3674
|
-
def create_siwave_syz_setup(self, name=None):
|
|
3684
|
+
def create_siwave_syz_setup(self, name=None, **kwargs):
|
|
3675
3685
|
"""Create a setup from a template.
|
|
3676
3686
|
|
|
3677
3687
|
Parameters
|
|
@@ -3698,10 +3708,12 @@ class Edb(Database):
|
|
|
3698
3708
|
name = generate_unique_name("Siwave_SYZ")
|
|
3699
3709
|
if name in self.setups:
|
|
3700
3710
|
return False
|
|
3701
|
-
|
|
3711
|
+
setup = SiwaveSimulationSetup(self, name=name)
|
|
3712
|
+
for k, v in kwargs.items():
|
|
3713
|
+
setattr(setup, k, v)
|
|
3702
3714
|
return self.setups[name]
|
|
3703
3715
|
|
|
3704
|
-
def create_siwave_dc_setup(self, name=None):
|
|
3716
|
+
def create_siwave_dc_setup(self, name=None, **kwargs):
|
|
3705
3717
|
"""Create a setup from a template.
|
|
3706
3718
|
|
|
3707
3719
|
Parameters
|
|
@@ -3725,7 +3737,9 @@ class Edb(Database):
|
|
|
3725
3737
|
name = generate_unique_name("Siwave_DC")
|
|
3726
3738
|
if name in self.setups:
|
|
3727
3739
|
return False
|
|
3728
|
-
setup = SiwaveDCSimulationSetup(self
|
|
3740
|
+
setup = SiwaveDCSimulationSetup(self, name=name)
|
|
3741
|
+
for k, v in kwargs.items():
|
|
3742
|
+
setattr(setup, k, v)
|
|
3729
3743
|
return setup
|
|
3730
3744
|
|
|
3731
3745
|
def calculate_initial_extent(self, expansion_factor):
|
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
from pyedb.dotnet.edb_core.cell.layout_obj import Connectable
|
|
24
|
+
from pyedb.dotnet.edb_core.edb_data.padstacks_data import EDBPadstackInstance
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class VoltageRegulator(Connectable):
|
|
28
|
+
"""Class managing EDB voltage regulator."""
|
|
29
|
+
|
|
30
|
+
def __init__(self, pedb, edb_object=None):
|
|
31
|
+
super().__init__(pedb, edb_object)
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def component(self):
|
|
35
|
+
"""Retrieve voltage regulator component"""
|
|
36
|
+
if not self._edb_object.GetComponent().IsNull():
|
|
37
|
+
ref_des = self._edb_object.GetComponent().GetName()
|
|
38
|
+
if not ref_des:
|
|
39
|
+
return False
|
|
40
|
+
return self._pedb.components.instances[ref_des]
|
|
41
|
+
self._pedb.logger.warning("No voltage regulator component.")
|
|
42
|
+
return False
|
|
43
|
+
|
|
44
|
+
@component.setter
|
|
45
|
+
def component(self, value):
|
|
46
|
+
if not isinstance(value, str):
|
|
47
|
+
self._pedb.logger.error("refdes name must be provided to set vrm component")
|
|
48
|
+
return
|
|
49
|
+
if value not in self._pedb.components.instances:
|
|
50
|
+
self._pedb.logger.error(f"component {value} not found in layout")
|
|
51
|
+
return
|
|
52
|
+
self._edb_object.SetGroup(self._pedb.components.instances[value].edbcomponent)
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def id(self):
|
|
56
|
+
"""Retrieve voltage regulator ID."""
|
|
57
|
+
return self._edb_object.GetId()
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def load_regulator_current(self):
|
|
61
|
+
"""Retrieve load regulator current value"""
|
|
62
|
+
return self._edb_object.GetLoadRegulationCurrent().ToDouble()
|
|
63
|
+
|
|
64
|
+
@load_regulator_current.setter
|
|
65
|
+
def load_regulator_current(self, value):
|
|
66
|
+
_value = self._pedb.edb_value(value)
|
|
67
|
+
self._edb_object.SetLoadRegulationCurrent(_value)
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def load_regulation_percent(self):
|
|
71
|
+
"""Retrieve load regulation percent value."""
|
|
72
|
+
return self._edb_object.GetLoadRegulationPercent().ToDouble()
|
|
73
|
+
|
|
74
|
+
@load_regulation_percent.setter
|
|
75
|
+
def load_regulation_percent(self, value):
|
|
76
|
+
_value = self._edb_object.edb_value(value)
|
|
77
|
+
self._edb_object.SetLoadRegulationPercent(_value)
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def name(self):
|
|
81
|
+
"""Retrieve voltage regulator name."""
|
|
82
|
+
return self._edb_object.GetName()
|
|
83
|
+
|
|
84
|
+
@name.setter
|
|
85
|
+
def name(self, value):
|
|
86
|
+
if isinstance(value, str):
|
|
87
|
+
self._edb_object.SetName(value)
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def negative_remote_sense_pin(self):
|
|
91
|
+
"""Retrieve negative remote sense pin."""
|
|
92
|
+
edb_pin = self._edb_object.GetNegRemoteSensePin()
|
|
93
|
+
return self._pedb.padstacks.instances[edb_pin.GetId()]
|
|
94
|
+
|
|
95
|
+
@negative_remote_sense_pin.setter
|
|
96
|
+
def negative_remote_sense_pin(self, value):
|
|
97
|
+
if isinstance(value, int):
|
|
98
|
+
if value in self._pedb.padsatcks.instances:
|
|
99
|
+
_inst = self._pedb.padsatcks.instances[value]
|
|
100
|
+
if self._edb_object.SetNegRemoteSensePin(_inst._edb_object):
|
|
101
|
+
self._negative_remote_sense_pin = _inst
|
|
102
|
+
elif isinstance(value, EDBPadstackInstance):
|
|
103
|
+
if self._edb_object.SetNegRemoteSensePin(value._edb_object):
|
|
104
|
+
self._negative_remote_sense_pin = value
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def positive_remote_sense_pin(self):
|
|
108
|
+
"""Retrieve positive remote sense pin."""
|
|
109
|
+
edb_pin = self._edb_object.GetPosRemoteSensePin()
|
|
110
|
+
return self._pedb.padstacks.instances[edb_pin.GetId()]
|
|
111
|
+
|
|
112
|
+
@positive_remote_sense_pin.setter
|
|
113
|
+
def positive_remote_sense_pin(self, value):
|
|
114
|
+
if isinstance(value, int):
|
|
115
|
+
if value in self._pedb.padsatcks.instances:
|
|
116
|
+
_inst = self._pedb.padsatcks.instances[value]
|
|
117
|
+
if self._edb_object.SetPosRemoteSensePin(_inst._edb_object):
|
|
118
|
+
self._positive_remote_sense_pin = _inst
|
|
119
|
+
if not self.component:
|
|
120
|
+
self.component = _inst._edb_object.GetComponent().GetName()
|
|
121
|
+
elif isinstance(value, EDBPadstackInstance):
|
|
122
|
+
if self._edb_object.SetPosRemoteSensePin(value._edb_object):
|
|
123
|
+
self._positive_remote_sense_pin = value
|
|
124
|
+
if not self.component:
|
|
125
|
+
self.component = value._edb_object.GetComponent().GetName()
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def voltage(self):
|
|
129
|
+
"""Retrieve voltage value."""
|
|
130
|
+
return self._edb_object.GetVoltage().ToDouble()
|
|
131
|
+
|
|
132
|
+
@voltage.setter
|
|
133
|
+
def voltage(self, value):
|
|
134
|
+
self._edb_object.SetVoltage(self._pedb.edb_value(value))
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def is_active(self):
|
|
138
|
+
"""Check is voltage regulator is active."""
|
|
139
|
+
return self._edb_object.IsActive()
|
|
140
|
+
|
|
141
|
+
@is_active.setter
|
|
142
|
+
def is_active(self, value):
|
|
143
|
+
if isinstance(value, bool):
|
|
144
|
+
self._edb_object.SetIsActive(value)
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def is_null(self):
|
|
148
|
+
return self._edb_object.IsNull()
|