gdsfactory.routing.fanout_component

gdsfactory.routing.fanout_component#

gdsfactory.routing.fanout_component(component: ComponentSpec, port_names: tuple[str, ...], pitch: tuple[float, float] = (0.0, 20.0), dx: float = 20.0, sort_ports: bool = True, auto_rename_ports: bool = True, enforce_port_ordering: bool = False, **kwargs) Component[source]#

Returns component with Sbend fanout routes.

Parameters:
  • component – to fanout ports.

  • port_names – list of port names.

  • pitch – target port spacing for new component.

  • dx – how far the fanout in x direction.

  • sort_ports – sort ports.

  • auto_rename_ports – auto_rename_ports.

  • enforce_port_ordering – enforce_port_ordering. False by default.

  • kwargs – for get_route_sbend.

import gdsfactory as gf
c = gf.components.mmi2x2()

cc = gf.routing.fanout_component(
    component=c, port_names=tuple(c.get_ports_dict(orientation=0).keys())
)
cc.plot()

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

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