gdsfactory.routing.add_electrical_pads_top_dc

gdsfactory.routing.add_electrical_pads_top_dc#

gdsfactory.routing.add_electrical_pads_top_dc(component: ComponentSpec = functools.partial(<function straight>, cross_section='xs_metal_routing', length=200.0), spacing: tuple[float, float] = (0.0, 100.0), pad_array: ComponentSpec = 'pad_array', select_ports: ~collections.abc.Callable = functools.partial(<function select_ports>, port_type='electrical'), get_bundle_function: ~collections.abc.Callable = functools.partial(<function get_bundle>, bend=<function wire_corner>, cross_section='xs_metal_routing'), port_names: tuple[str, ...] | None = None, **kwargs) Component[source]#

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

Parameters:
  • component – component spec to connect to.

  • spacing – component to pad spacing.

  • pad_array – component spec for pad_array.

  • select_ports – function to select_ports.

  • get_bundle_function – function to route bundle of ports.

  • port_names – optional port names. Overrides select_ports.

  • kwargs – route settings.

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, png, hires.png, pdf)

../_images/gdsfactory-routing-add_electrical_pads_top_dc-1.png