WaveguideConnector

class picazzo3.wg.connector.cell.WaveguideConnector(*args, **kwargs)

Connector between two port interfaces. This component will generate a waveguide between two ports, and if necessary add the required transitions. By default, the shape of the waveguide is a rounded shape based on the default RouteManhattan, but it is possible to supply a user-defined shape (not a route with waypoints, but an actual shape including the bends.)

Parameters:

trace_template: PCell and _WaveguideTemplate, optional

Waveguide template for the connector

end_port: _PortInterface, optional

Port where the connector ends

start_port: _PortInterface, optional

Port where the connector starts

cell_instances: _PCellInstanceDict, optional

name: optional

The unique name of the pcell

end_transition: PCell, locked

transition at the end port

start_transition: PCell, locked

transition at the start port

trace: PCell, locked

trace between the transitions

Views

Layout
Parameters:

view_name: str, optional

The name of the view

end_transition_length: optional

Length of the end transition. Set to None to use the default.

start_transition_length: optional

Length of the start transition. Set to None to use the default.

flatten: optional

If true the contents is flattened, removing one level of hierarchy

shape: Shape, optional

Shape of the trace. Automatically uses a manhattan shape

grids_per_unit: locked

Number of grid cells per design unit

units_per_grid: locked

Ratio of grid cell and design unit

end_transition_parameters: dict, locked

Layout parameters for the end transition

start_transition_parameters: dict, locked

Layout parameters for the start transition

trace_shape: Shape, locked

shape of the actual waveguide, minus the transitions

grid: float and number > 0, locked

design grid. Extracted by default from TECH.METRICS.GRID

unit: float and number > 0, locked

design unit. Extracted by default from TECH.METRICS.UNIT

Examples

from technologies import silicon_photonics
from picazzo3.wg.connector import WaveguideConnector

# Make two short waveguides (of different type) as a start and end point
from picazzo3.traces.wire_wg.trace import WireWaveguideTemplate
wg_t = WireWaveguideTemplate()
wg_t.Layout(core_width=0.550)
wg1 = wg_t()
wg1.Layout(shape=[(-10.0, 0.0), (0.0,0.0)])

from picazzo3.traces.rib_wg.trace import RibWaveguideTemplate
ribwg_t = RibWaveguideTemplate()
ribwg_t.Layout(core_width=0.700)
wg2= ribwg_t()
wg2.Layout(shape=[(40.0,30.0), (45.0, 40.0)])

C = WaveguideConnector(trace_template=wg_t,
                       start_port=(wg1, 'out'),
                       end_port=(wg2, 'in'))
layout = C.Layout()

layout.visualize()
../../../../_images/picazzo3-wg-connector-cell-WaveguideConnector-1.png