gdsfactory.routing.route_single_electrical

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 = 'metal3') None[source]#

Places a route between two electrical ports.

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

  • port1 – The first port.

  • port2 – The second port.

  • start_straight_length – The length of the straight at the start of the route.

  • end_straight_length – The length of the straight at the end of the route.

  • layer – The layer of the route.

  • width – The width of the route.

  • cross_section – The cross section of the route.