pyedb 0.5.2__py3-none-any.whl → 0.6.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 +2 -3
- pyedb/dotnet/application/Variables.py +22 -0
- pyedb/dotnet/edb.py +42 -6
- pyedb/dotnet/edb_core/cell/hierarchy/model.py +22 -0
- pyedb/dotnet/edb_core/components.py +23 -1
- pyedb/dotnet/edb_core/configuration.py +23 -2
- pyedb/dotnet/edb_core/definition/component_def.py +24 -3
- pyedb/dotnet/edb_core/definition/component_model.py +22 -0
- pyedb/dotnet/edb_core/definition/definition_obj.py +24 -4
- pyedb/dotnet/edb_core/definition/definitions.py +22 -1
- pyedb/dotnet/edb_core/definition/package_def.py +23 -3
- pyedb/dotnet/edb_core/dotnet/database.py +22 -0
- pyedb/dotnet/edb_core/dotnet/layout.py +22 -0
- pyedb/dotnet/edb_core/dotnet/primitive.py +22 -0
- pyedb/dotnet/edb_core/edb_data/components_data.py +107 -2
- pyedb/dotnet/edb_core/edb_data/connectable.py +22 -0
- pyedb/dotnet/edb_core/edb_data/control_file.py +22 -0
- pyedb/dotnet/edb_core/edb_data/design_options.py +23 -0
- pyedb/dotnet/edb_core/edb_data/edbvalue.py +23 -0
- pyedb/dotnet/edb_core/edb_data/hfss_extent_info.py +22 -0
- pyedb/dotnet/edb_core/edb_data/hfss_simulation_setup_data.py +22 -0
- pyedb/dotnet/edb_core/edb_data/layer_data.py +22 -0
- pyedb/dotnet/edb_core/edb_data/nets_data.py +23 -1
- pyedb/dotnet/edb_core/edb_data/obj_base.py +23 -0
- pyedb/dotnet/edb_core/edb_data/padstacks_data.py +22 -0
- pyedb/dotnet/edb_core/edb_data/ports.py +22 -0
- pyedb/dotnet/edb_core/edb_data/primitives_data.py +62 -7
- pyedb/dotnet/edb_core/edb_data/simulation_configuration.py +22 -0
- pyedb/dotnet/edb_core/edb_data/simulation_setup.py +22 -0
- pyedb/dotnet/edb_core/edb_data/siwave_simulation_setup_data.py +22 -0
- pyedb/dotnet/edb_core/edb_data/sources.py +23 -3
- pyedb/dotnet/edb_core/edb_data/terminals.py +22 -0
- pyedb/dotnet/edb_core/edb_data/utilities.py +25 -2
- pyedb/dotnet/edb_core/edb_data/variables.py +23 -0
- pyedb/dotnet/edb_core/general.py +22 -0
- pyedb/dotnet/edb_core/hfss.py +22 -0
- pyedb/dotnet/edb_core/layout.py +33 -4
- pyedb/dotnet/edb_core/layout_validation.py +24 -2
- pyedb/dotnet/edb_core/materials.py +22 -0
- pyedb/dotnet/edb_core/net_class.py +22 -0
- pyedb/dotnet/edb_core/nets.py +22 -0
- pyedb/dotnet/edb_core/padstack.py +22 -0
- pyedb/dotnet/edb_core/siwave.py +22 -0
- pyedb/dotnet/edb_core/stackup.py +22 -0
- pyedb/edb_logger.py +22 -0
- pyedb/generic/constants.py +22 -0
- pyedb/generic/data_handlers.py +0 -1
- pyedb/generic/design_types.py +24 -0
- pyedb/generic/general_methods.py +22 -2
- pyedb/generic/plot.py +3 -13
- pyedb/generic/settings.py +22 -0
- pyedb/ipc2581/bom/bom.py +22 -0
- pyedb/ipc2581/bom/bom_item.py +22 -0
- pyedb/ipc2581/bom/characteristics.py +22 -0
- pyedb/ipc2581/bom/refdes.py +22 -0
- pyedb/ipc2581/content/color.py +22 -0
- pyedb/ipc2581/content/content.py +22 -0
- pyedb/ipc2581/content/dictionary_color.py +22 -0
- pyedb/ipc2581/content/dictionary_fill.py +22 -0
- pyedb/ipc2581/content/dictionary_line.py +22 -0
- pyedb/ipc2581/content/entry_color.py +22 -0
- pyedb/ipc2581/content/entry_line.py +22 -0
- pyedb/ipc2581/content/fill.py +22 -0
- pyedb/ipc2581/content/layer_ref.py +22 -0
- pyedb/ipc2581/content/standard_geometries_dictionary.py +22 -0
- pyedb/ipc2581/ecad/cad_data/assembly_drawing.py +22 -0
- pyedb/ipc2581/ecad/cad_data/cad_data.py +22 -0
- pyedb/ipc2581/ecad/cad_data/component.py +22 -0
- pyedb/ipc2581/ecad/cad_data/drill.py +22 -0
- pyedb/ipc2581/ecad/cad_data/feature.py +22 -0
- pyedb/ipc2581/ecad/cad_data/layer.py +22 -0
- pyedb/ipc2581/ecad/cad_data/layer_feature.py +22 -0
- pyedb/ipc2581/ecad/cad_data/logical_net.py +22 -0
- pyedb/ipc2581/ecad/cad_data/outline.py +22 -0
- pyedb/ipc2581/ecad/cad_data/package.py +22 -0
- pyedb/ipc2581/ecad/cad_data/padstack_def.py +22 -0
- pyedb/ipc2581/ecad/cad_data/padstack_hole_def.py +22 -0
- pyedb/ipc2581/ecad/cad_data/padstack_instance.py +22 -0
- pyedb/ipc2581/ecad/cad_data/padstack_pad_def.py +22 -0
- pyedb/ipc2581/ecad/cad_data/path.py +22 -0
- pyedb/ipc2581/ecad/cad_data/phy_net.py +22 -0
- pyedb/ipc2581/ecad/cad_data/pin.py +22 -0
- pyedb/ipc2581/ecad/cad_data/polygon.py +22 -0
- pyedb/ipc2581/ecad/cad_data/profile.py +22 -0
- pyedb/ipc2581/ecad/cad_data/stackup.py +22 -0
- pyedb/ipc2581/ecad/cad_data/stackup_group.py +22 -0
- pyedb/ipc2581/ecad/cad_data/stackup_layer.py +22 -0
- pyedb/ipc2581/ecad/cad_data/step.py +22 -0
- pyedb/ipc2581/ecad/cad_header.py +22 -0
- pyedb/ipc2581/ecad/ecad.py +22 -0
- pyedb/ipc2581/ecad/spec.py +22 -0
- pyedb/ipc2581/history_record.py +22 -0
- pyedb/ipc2581/ipc2581.py +22 -0
- pyedb/ipc2581/logistic_header.py +22 -0
- pyedb/misc/aedtlib_personalib_install.py +22 -0
- pyedb/misc/downloads.py +22 -0
- pyedb/misc/misc.py +22 -0
- pyedb/misc/siw_feature_config/emc/component_tags.py +3 -5
- pyedb/misc/siw_feature_config/emc/net_tags.py +1 -3
- pyedb/misc/siw_feature_config/emc/tag_library.py +5 -4
- pyedb/misc/siw_feature_config/emc/xml_generic.py +1 -2
- pyedb/misc/siw_feature_config/emc_rule_checker_settings.py +55 -30
- pyedb/siwave.py +6 -4
- {pyedb-0.5.2.dist-info → pyedb-0.6.0.dist-info}/METADATA +1 -1
- pyedb-0.6.0.dist-info/RECORD +130 -0
- pyedb-0.5.2.dist-info/RECORD +0 -130
- {pyedb-0.5.2.dist-info → pyedb-0.6.0.dist-info}/LICENSE +0 -0
- {pyedb-0.5.2.dist-info → pyedb-0.6.0.dist-info}/WHEEL +0 -0
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from pyedb.generic.general_methods import ET
|
|
2
24
|
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
import math
|
|
2
24
|
|
|
3
25
|
from pyedb.generic.general_methods import ET, pyedb_function_handler
|
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from pyedb.generic.general_methods import ET
|
|
2
24
|
from pyedb.ipc2581.ecad.cad_data.layer_feature import LayerFeature
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from pyedb.generic.general_methods import ET
|
|
2
24
|
from pyedb.ipc2581.ecad.cad_data.stackup_group import StackupGroup
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from pyedb.generic.general_methods import ET
|
|
2
24
|
from pyedb.ipc2581.ecad.cad_data.layer import Layer
|
|
3
25
|
from pyedb.ipc2581.ecad.cad_data.stackup_layer import StackupLayer
|
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from pyedb.generic.general_methods import ET
|
|
2
24
|
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
import math
|
|
2
24
|
|
|
3
25
|
from pyedb.generic.general_methods import ET, pyedb_function_handler
|
pyedb/ipc2581/ecad/cad_header.py
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from pyedb.generic.general_methods import ET
|
|
2
24
|
from pyedb.ipc2581.ecad.spec import Spec
|
|
3
25
|
|
pyedb/ipc2581/ecad/ecad.py
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from pyedb.generic.general_methods import ET
|
|
2
24
|
from pyedb.ipc2581.ecad.cad_data.cad_data import CadData
|
|
3
25
|
from pyedb.ipc2581.ecad.cad_header import CadHeader
|
pyedb/ipc2581/ecad/spec.py
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from pyedb.generic.general_methods import ET
|
|
2
24
|
|
|
3
25
|
|
pyedb/ipc2581/history_record.py
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from datetime import date
|
|
2
24
|
|
|
3
25
|
from pyedb.generic.general_methods import ET
|
pyedb/ipc2581/ipc2581.py
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
import os.path
|
|
2
24
|
|
|
3
25
|
from pyedb.generic.general_methods import ET, pyedb_function_handler
|
pyedb/ipc2581/logistic_header.py
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from pyedb.generic.general_methods import ET
|
|
2
24
|
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
from xml.dom.minidom import parseString
|
|
2
24
|
import xml.etree.ElementTree as ET
|
|
3
25
|
|
pyedb/misc/downloads.py
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
"""Download example datasets from https://github.com/pyansys/example-data"""
|
|
2
24
|
import os
|
|
3
25
|
import shutil
|
pyedb/misc/misc.py
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
"""Miscellaneous Methods for PyEDB."""
|
|
2
24
|
import os
|
|
3
25
|
import warnings
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
from pyedb.misc.siw_feature_config.emc.xml_generic import
|
|
2
|
-
XmlGeneric
|
|
1
|
+
from pyedb.misc.siw_feature_config.emc.xml_generic import XmlGeneric
|
|
3
2
|
|
|
4
3
|
|
|
5
4
|
class Comp(XmlGeneric):
|
|
@@ -33,9 +32,8 @@ class Comp(XmlGeneric):
|
|
|
33
32
|
|
|
34
33
|
class ComponentTags(XmlGeneric):
|
|
35
34
|
"""Manages component tags."""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
35
|
+
|
|
36
|
+
CLS_MAPPING = {"Comp": Comp}
|
|
39
37
|
|
|
40
38
|
def __init__(self, element):
|
|
41
39
|
super().__init__(element)
|
|
@@ -3,6 +3,7 @@ from pyedb.misc.siw_feature_config.emc.xml_generic import XmlGeneric
|
|
|
3
3
|
|
|
4
4
|
class TagType(XmlGeneric):
|
|
5
5
|
"""Manages tag type."""
|
|
6
|
+
|
|
6
7
|
def __init__(self, element):
|
|
7
8
|
super().__init__(element)
|
|
8
9
|
|
|
@@ -14,16 +15,15 @@ class TagType(XmlGeneric):
|
|
|
14
15
|
|
|
15
16
|
class TagConfig(XmlGeneric):
|
|
16
17
|
"""Manages tag config."""
|
|
18
|
+
|
|
17
19
|
def __init__(self, element):
|
|
18
20
|
super().__init__(element)
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
class Tag(XmlGeneric):
|
|
22
24
|
"""Manages tag."""
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"TagConfig": TagConfig
|
|
26
|
-
}
|
|
25
|
+
|
|
26
|
+
CLS_MAPPING = {"TagType": TagType, "TagConfig": TagConfig}
|
|
27
27
|
|
|
28
28
|
def __init__(self, element):
|
|
29
29
|
super().__init__(element)
|
|
@@ -48,6 +48,7 @@ class Tag(XmlGeneric):
|
|
|
48
48
|
|
|
49
49
|
class TagLibrary(XmlGeneric):
|
|
50
50
|
"""Manages tag library."""
|
|
51
|
+
|
|
51
52
|
CLS_MAPPING = {
|
|
52
53
|
"Tag": Tag,
|
|
53
54
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import re
|
|
2
1
|
from pyedb.generic.general_methods import ET
|
|
3
2
|
|
|
4
3
|
|
|
@@ -75,4 +74,4 @@ class XmlGeneric:
|
|
|
75
74
|
elem_type = list(i.keys())[0]
|
|
76
75
|
kwargs = list(i.values())[0]
|
|
77
76
|
obj = self.CLS_MAPPING[elem_type](None)
|
|
78
|
-
self.sub_elements.append(obj.create(kwargs))
|
|
77
|
+
self.sub_elements.append(obj.create(kwargs))
|
|
@@ -1,14 +1,34 @@
|
|
|
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 copy import deepcopy as copy
|
|
1
24
|
import json
|
|
25
|
+
|
|
2
26
|
import numpy as np
|
|
3
|
-
from copy import deepcopy as copy
|
|
4
27
|
|
|
5
28
|
from pyedb.generic.general_methods import ET
|
|
6
|
-
|
|
7
|
-
from pyedb.misc.siw_feature_config.emc.tag_library import \
|
|
8
|
-
TagLibrary
|
|
29
|
+
from pyedb.misc.siw_feature_config.emc.component_tags import ComponentTags
|
|
9
30
|
from pyedb.misc.siw_feature_config.emc.net_tags import NetTags
|
|
10
|
-
from pyedb.misc.siw_feature_config.emc.
|
|
11
|
-
ComponentTags
|
|
31
|
+
from pyedb.misc.siw_feature_config.emc.tag_library import TagLibrary
|
|
12
32
|
|
|
13
33
|
|
|
14
34
|
def kwargs_parser(kwargs):
|
|
@@ -118,7 +138,9 @@ class EMCRuleCheckerSettings:
|
|
|
118
138
|
if component_tags:
|
|
119
139
|
self.component_tags.read_dict(component_tags)
|
|
120
140
|
|
|
121
|
-
def add_net(
|
|
141
|
+
def add_net(
|
|
142
|
+
self, name, is_bus=False, is_clock=False, is_critical=False, net_type="Single-Ended", diff_mate_name=""
|
|
143
|
+
):
|
|
122
144
|
"""Assign tags to a net.
|
|
123
145
|
|
|
124
146
|
Parameters
|
|
@@ -142,7 +164,7 @@ class EMCRuleCheckerSettings:
|
|
|
142
164
|
"isCritical": is_critical,
|
|
143
165
|
"name": name,
|
|
144
166
|
"type": net_type,
|
|
145
|
-
"Diffmatename": diff_mate_name
|
|
167
|
+
"Diffmatename": diff_mate_name,
|
|
146
168
|
}
|
|
147
169
|
|
|
148
170
|
kwargs = kwargs_parser(kwargs)
|
|
@@ -163,18 +185,19 @@ class EMCRuleCheckerSettings:
|
|
|
163
185
|
else:
|
|
164
186
|
self.net_tags.add_sub_element(kwargs, "Net")
|
|
165
187
|
|
|
166
|
-
def add_component(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
188
|
+
def add_component(
|
|
189
|
+
self,
|
|
190
|
+
comp_name,
|
|
191
|
+
comp_value,
|
|
192
|
+
device_name,
|
|
193
|
+
is_clock_driver,
|
|
194
|
+
is_high_speed,
|
|
195
|
+
is_ic,
|
|
196
|
+
is_oscillator,
|
|
197
|
+
x_loc,
|
|
198
|
+
y_loc,
|
|
199
|
+
cap_type=None,
|
|
200
|
+
):
|
|
178
201
|
"""Assign tags to a component.
|
|
179
202
|
|
|
180
203
|
Parameters
|
|
@@ -200,15 +223,17 @@ class EMCRuleCheckerSettings:
|
|
|
200
223
|
cap_type: str, optional
|
|
201
224
|
Type of the capacitor. The default is ``"None"``. Options are ``"Decoupling"``, ``"Stitching"``.
|
|
202
225
|
"""
|
|
203
|
-
kwargs = {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
226
|
+
kwargs = {
|
|
227
|
+
"CompName": comp_name,
|
|
228
|
+
"CompValue": comp_value,
|
|
229
|
+
"DeviceName": device_name,
|
|
230
|
+
"capType": cap_type,
|
|
231
|
+
"isClockDriver": is_clock_driver,
|
|
232
|
+
"isHighSpeed": is_high_speed,
|
|
233
|
+
"isIC": is_ic,
|
|
234
|
+
"isOscillator": is_oscillator,
|
|
235
|
+
"xLoc": x_loc,
|
|
236
|
+
"yLoc": y_loc,
|
|
237
|
+
}
|
|
213
238
|
kwargs = kwargs_parser(kwargs)
|
|
214
239
|
self.component_tags.add_sub_element(kwargs, "Comp")
|
pyedb/siwave.py
CHANGED
|
@@ -14,10 +14,12 @@ import sys
|
|
|
14
14
|
import time
|
|
15
15
|
|
|
16
16
|
from pyedb.dotnet.clr_module import _clr
|
|
17
|
-
from pyedb.generic.general_methods import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
from pyedb.generic.general_methods import (
|
|
18
|
+
_pythonver,
|
|
19
|
+
is_ironpython,
|
|
20
|
+
is_windows,
|
|
21
|
+
pyedb_function_handler,
|
|
22
|
+
)
|
|
21
23
|
from pyedb.misc.misc import list_installed_ansysem
|
|
22
24
|
|
|
23
25
|
|