ControlFileComponent#

class pyedb.grpc.database.control_file.ControlFileComponent#

Represents a component in the control file.

Overview#

add_pin

Add a pin to the component.

add_port

Add a port to the component.

Import detail#

from pyedb.grpc.database.control_file import ControlFileComponent

Attribute detail#

ControlFileComponent.refdes: str = 'U1'#
ControlFileComponent.partname: str = 'BGA'#
ControlFileComponent.parttype: str = 'IC'#
ControlFileComponent.die_type: str = 'None'#
ControlFileComponent.die_orientation: str = 'Chip down'#
ControlFileComponent.solderball_shape: str = 'None'#
ControlFileComponent.solder_diameter: str = '65um'#
ControlFileComponent.solder_height: str = '65um'#
ControlFileComponent.solder_material: str = 'solder'#
ControlFileComponent.pins: List[Dict[str, str | float]] = []#
ControlFileComponent.ports: List[Dict[str, str | float | None]] = []#

Method detail#

ControlFileComponent.add_pin(name: str, x: float, y: float, layer: str) None#

Add a pin to the component.

Parameters:
namestr

Pin name.

xfloat

X-coordinate.

yfloat

Y-coordinate.

layerstr

Layer name.

ControlFileComponent.add_port(name: str, z0: float, pospin: str, refpin: str | None = None, pos_type: str = 'pin', ref_type: str = 'pin') None#

Add a port to the component.

Parameters:
namestr

Port name.

z0float

Characteristic impedance.

pospinstr

Positive pin/group name.

refpinstr, optional

Reference pin/group name.

pos_typestr, optional

Positive element type (“pin” or “pingroup”). Default is “pin”.

ref_typestr, optional

Reference element type (“pin”, “pingroup”, or “net”). Default is “pin”.