gdsfactory.routing.fanout2x2

Contents

gdsfactory.routing.fanout2x2#

gdsfactory.routing.fanout2x2(component: ComponentSpec = <function straight>, port_spacing: float = 20.0, bend_length: float | None = None, npoints: int = 101, select_ports: ~collections.abc.Callable = functools.partial(<function select_ports>, port_type='optical'), cross_section: CrossSectionSpec = 'xs_sc', **kwargs) Component[source]#

Returns component with Sbend fanout routes.

Parameters:
  • component – to fanout.

  • port_spacing – for the returned component.

  • bend_length – length of the bend (defaults to port_spacing).

  • npoints – for sbend.

  • select_ports – function to select optical_ports ports.

  • cross_section – cross_section spec.

  • kwargs – cross_section settings.

import gdsfactory as gf
c = gf.components.nxn(west=2, east=2)

cc = gf.routing.fanout2x2(component=c, port_spacing=20)
cc.plot()

(Source code, png, hires.png, pdf)

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