get_reference_pins#

EdbPadstacks.get_reference_pins(positive_pin, reference_net='gnd', search_radius=0.005, max_limit=0, component_only=True)[source]#

Search for reference pins using given criteria.

Parameters:
positive_pinEDBPadstackInstance

Pin used for evaluating the distance on the reference pins found.

reference_netstr, optional

Reference net. The default is "gnd".

search_radiusfloat, optional

Search radius for finding padstack instances. The default is 5e-3.

max_limitint, optional

Maximum limit for the padstack instances found. The default is 0, in which case no limit is applied. The maximum limit value occurs on the nearest reference pins from the positive one that is found.

component_onlybool, optional

Whether to limit the search to component padstack instances only. The default is True. When False, the search is extended to the entire layout.

Returns:
list

List of dotnet.edb_core.edb_data.padstacks_data.EDBPadstackInstance.

Examples

>>> edbapp = Edb("target_path")
>>> pin = edbapp.components.instances["J5"].pins["19"]
>>> reference_pins = edbapp.padstacks.get_reference_pins(positive_pin=pin, reference_net="GND",
>>> search_radius=5e-3, max_limit=0, component_only=True)