Skip to article frontmatterSkip to article content

gdsfactory.routing.route_single_electrical

gdsfactory.routing.route_single_electrical(component: Component, port1: Port, port2: Port, start_straight_length: float | None = None, end_straight_length: float | None = None, layer: LayerSpec | None = None, width: float | None = None, cross_section: CrossSectionSpec = 'metal_routing')None

Places a route between two electrical ports.

Parameters
  • componentThe cell to place the route in.

  • port1The first port.

  • port2The second port.

  • start_straight_lengthThe length of the straight at the start of the route.

  • end_straight_lengthThe length of the straight at the end of the route.

  • layerThe layer of the route.

  • widthThe width of the route.

  • cross_sectionThe cross section of the route.