CfgPackageDefinitions#

class pyedb.configuration.cfg_package_definition.CfgPackageDefinitions(pedb=None, data=None)#

Manage thermal package definitions for the package_definitions section.

Overview#

get_parameters_from_edb

Read thermal package definitions from EDB.

set_parameters_to_edb

Write all configured package definitions into the open EDB design.

to_list

Serialize all package definitions to a list of dictionaries.

add

Add a thermal package definition entry.

apply

Write all configured package definitions into the open EDB design.

get_data_from_db

Read package definitions from EDB.

Import detail#

from pyedb.configuration.cfg_package_definition import CfgPackageDefinitions

Attribute detail#

CfgPackageDefinitions.get_parameter_from_edb#
CfgPackageDefinitions.set_parameter_to_edb#
CfgPackageDefinitions.packages#

Method detail#

CfgPackageDefinitions.get_parameters_from_edb()#

Read thermal package definitions from EDB.

CfgPackageDefinitions.set_parameters_to_edb()#

Write all configured package definitions into the open EDB design.

CfgPackageDefinitions.to_list()#

Serialize all package definitions to a list of dictionaries.

CfgPackageDefinitions.add(name: str, component_definition: str, apply_to_all=None, components=None, maximum_power=None, thermal_conductivity=None, theta_jb=None, theta_jc=None, height=None, extent_bounding_box=None)#

Add a thermal package definition entry.

Parameters:
namestr

Package definition name, e.g. "PKG_U1".

component_definitionstr

Component part-definition name.

apply_to_allbool, optional

Assign the package to every matching component when True.

componentslist of str, optional

Specific reference designators to target when apply_to_all is False.

maximum_powerstr, optional

Maximum power dissipation, e.g. "5W".

thermal_conductivitystr, optional

Package thermal conductivity.

theta_jbstr, optional

Junction-to-board thermal resistance, e.g. "10C/W".

theta_jcstr, optional

Junction-to-case thermal resistance, e.g. "5C/W".

heightstr, optional

Package height, e.g. "1mm".

extent_bounding_boxdict, optional

Custom bounding-box extent override.

Returns:
CfgPackage

The newly created package object. Call CfgPackage.set_heatsink() on it to add fin geometry.

Examples

>>> pkg = cfg.package_definitions.add(
...     "PKG_U1",
...     component_definition="IC_U1",
...     apply_to_all=True,
...     maximum_power="5W",
...     theta_jb="10C/W",
...     theta_jc="5C/W",
...     height="1mm",
... )
>>> pkg.set_heatsink(fin_base_height="0.5mm", fin_height="3mm")
CfgPackageDefinitions.apply()#

Write all configured package definitions into the open EDB design.

CfgPackageDefinitions.get_data_from_db()#

Read package definitions from EDB.