get_component_placement_vector#
- Components.get_component_placement_vector(mounted_component, hosting_component, mounted_component_pin1, mounted_component_pin2, hosting_component_pin1, hosting_component_pin2, flipped=False)[source]#
Get the placement vector between 2 components.
- Parameters:
- mounted_componentedb.cell.hierarchy._hierarchy.Component
Mounted component name.
- hosting_componentedb.cell.hierarchy._hierarchy.Component
Hosting component name.
- mounted_component_pin1
str
Mounted component Pin 1 name.
- mounted_component_pin2
str
Mounted component Pin 2 name.
- hosting_component_pin1
str
Hosted component Pin 1 name.
- hosting_component_pin2
str
Hosted component Pin 2 name.
- flippedbool,
optional
Either if the mounted component will be flipped or not.
- Returns:
tuple
Tuple of Vector offset, rotation and solder height.
Examples
>>> edb1 = Edb(edbpath=targetfile1, edbversion="2021.2") >>> hosting_cmp = edb1.components.get_component_by_name("U100") >>> mounted_cmp = edb2.components.get_component_by_name("BGA") >>> vector, rotation, solder_ball_height = edb1.components.get_component_placement_vector( ... mounted_component=mounted_cmp, ... hosting_component=hosting_cmp, ... mounted_component_pin1="A12", ... mounted_component_pin2="A14", ... hosting_component_pin1="A12", ... hosting_component_pin2="A14")