create_port_on_component#
- Components.create_port_on_component(component, net_list, port_type=0, do_pingroup=True, reference_net='gnd', port_name=None, solder_balls_height=None, solder_balls_size=None, solder_balls_mid_size=None)[source]#
Create ports on a component.
- Parameters:
- component
str
orself._pedb.component
EDB component or str component name.
- net_list
str
orlist
of
string. List of nets where ports must be created on the component. If the net is not part of the component, this parameter is skipped.
- port_type
SourceType
enumerator
,CoaxPort
orCircuitPort
Type of port to create.
CoaxPort
generates solder balls.CircuitPort
generates circuit ports on pins belonging to the net list.- do_pingroupbool
True activate pingroup during port creation (only used with combination of CircPort), False will take the closest reference pin and generate one port per signal pin.
- refnet
str
orlist
of
string. list of the reference net.
- port_name
str
Port name for overwriting the default port-naming convention, which is
[component][net][pin]
. The port name must be unique. If a port with the specified name already exists, the default naming convention is used so that port creation does not fail.- solder_balls_height
float
,optional
Solder balls height used for the component. When provided default value is overwritten and must be provided in meter.
- solder_balls_size
float
,optional
Solder balls diameter. When provided auto evaluation based on padstack size will be disabled.
- solder_balls_mid_size
float
,optional
Solder balls mid-diameter. When provided if value is different than solder balls size, spheroid shape will be switched.
- component
- Returns:
double
, boolSalder ball height vale,
False
when failed.
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder") >>> net_list = ["M_DQ<1>", "M_DQ<2>", "M_DQ<3>", "M_DQ<4>", "M_DQ<5>"] >>> edbapp.components.create_port_on_component(cmp="U2A5", net_list=net_list, >>> port_type=SourceType.CoaxPort, do_pingroup=False, refnet="GND")