CfgPackageDefinitions#
- class pyedb.configuration.cfg_package_definition.CfgPackageDefinitions(pedb=None, data=None)#
Manage thermal package definitions for the
package_definitionssection.
Overview#
Read thermal package definitions from EDB. |
|
Write all configured package definitions into the open EDB design. |
|
Serialize all package definitions to a list of dictionaries. |
|
Add a thermal package definition entry. |
|
Write all configured package definitions into the open EDB design. |
|
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:
- name
str Package definition name, e.g.
"PKG_U1".- component_definition
str Component part-definition name.
- apply_to_allbool,
optional Assign the package to every matching component when
True.- components
listofstr,optional Specific reference designators to target when apply_to_all is
False.- maximum_power
str,optional Maximum power dissipation, e.g.
"5W".- thermal_conductivity
str,optional Package thermal conductivity.
- theta_jb
str,optional Junction-to-board thermal resistance, e.g.
"10C/W".- theta_jc
str,optional Junction-to-case thermal resistance, e.g.
"5C/W".- height
str,optional Package height, e.g.
"1mm".- extent_bounding_box
dict,optional Custom bounding-box extent override.
- name
- Returns:
CfgPackageThe 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.