gdsfactory.routing.add_electrical_pads_top_dc

gdsfactory.routing.add_electrical_pads_top_dc#

gdsfactory.routing.add_electrical_pads_top_dc(component, spacing=(0.0, 100.0), pad_array='pad_array270', select_ports=functools.partial(<function select_ports>, port_type='electrical'), port_names=None, cross_section='metal_routing', **kwargs)[source]#

Returns new component with electrical ports connected to top pad array.

Parameters:
  • component (ComponentSpec) – component spec to connect to.

  • spacing (tuple[float, float]) – component to pad spacing.

  • pad_array (ComponentSpec) – component factor for pad_array

  • select_ports (Callable[[...], Sequence[DPort]]) – function to select_ports.

  • route_bundle_function – function to route bundle of ports.

  • port_names (Sequence[str] | None) – optional port names. Overrides select_ports.

  • cross_section (CrossSectionSpec) – cross_section for the route.

  • kwargs (Any) – route settings.

Return type:

Component

import gdsfactory as gf
c = gf.components.wire_straight(length=200.)
c = gf.routing.add_electrical_pads_top_dc(c, width=10)
c.plot()

(Source code)