gdsfactory.routing.route_single_electrical

gdsfactory.routing.route_single_electrical#

gdsfactory.routing.route_single_electrical(component, port1, port2, start_straight_length=None, end_straight_length=None, layer=None, width=None, cross_section='metal_routing')[source]#

Places a route between two electrical ports.

Parameters:
  • component (Component) – The cell to place the route in.

  • port1 (Port) – The first port.

  • port2 (Port) – The second port.

  • start_straight_length (float | None) – The length of the straight at the start of the route.

  • end_straight_length (float | None) – The length of the straight at the end of the route.

  • layer (LayerSpec | None) – The layer of the route.

  • width (float | None) – The width of the route.

  • cross_section (CrossSectionSpec) – The cross section of the route.

Return type:

None