Skip to article frontmatterSkip to article content

gdsfactory.routing.add_electrical_pads_top_dc

gdsfactory.routing.add_electrical_pads_top_dc(component: ComponentSpec, spacing: Float2 = (0.0, 100.0), pad_array: ComponentSpec = 'pad_array270', select_ports: SelectPorts = functools.partial(<function select_ports>, port_type='electrical'), port_names: Strs | None = None, cross_section: CrossSectionSpec = 'metal_routing', **kwargs: Any)Component

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

Parameters
  • componentcomponent spec to connect to.

  • spacingcomponent to pad spacing.

  • pad_arraycomponent factor for pad_array

  • select_portsfunction to select_ports.

  • route_bundle_functionfunction to route bundle of ports.

  • port_namesoptional port names. Overrides select_ports.

  • cross_sectioncross_section for the route.

  • kwargsroute 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()