RectangularAWGNxM¶
- class awg_designer.sample_designs.awg.demux1xM.RectangularAWGNxM(*args, **kwargs)¶
Rectangular AWG with N inputs, M outputs and N_arms.
- Parameters
- N_arms: int and number > 0, required
Number of grating arms
- aperture_arms: PCell, required
Aperture cell used for grating arms
- aperture_in: PCell, required
Aperture cell used for the input
- aperture_out: PCell, required
Aperture cell used for the output
- multiaperture_class:
Type of multi-aperture to be used
- n_dummy_apertures: int and number >= 0
Number of dummy apertures
- n_inputs: int and number > 0
Number of input channels.
- n_outputs: int and number > 0
Number of output channels.
- trace_template: PCell and _WaveguideTemplate
- star_coupler_in_arm_ports: List with type restriction, allowed types: <class ‘str’>
list (in the right order) of the input star coupler port names that are connected to the array
- star_coupler_in_ports: List with type restriction, allowed types: <class ‘str’>
list (in the right order) of the input star coupler port names that are mapped onto ‘in’ ports
- star_coupler_out_arm_ports: List with type restriction, allowed types: <class ‘str’>
list (in the right order) of the output star coupler port names that are connected to the array
- star_coupler_out_ports: List with type restriction, allowed types: <class ‘str’>
list (in the right order) of the output star coupler port names that are mapped onto ‘out’ ports
- child_cells:
dict to create the instances of the child cells. Format is {‘inst_name1’: PCell}
- links: list and List with type restriction, allowed types: [<class ‘collections.abc.Sequence’>]
list of tuples connecting the instances. Format is [(‘inst1:term1’,’inst2:term2’), …]
- external_port_names: str
Map of the free instance terms/ports to the names of external terms/ports.Format is a dict {‘inst:term’ : ‘new_term_name’}.If a term/port is not listed, the format instname_portname will be used
- name: String that contains only ISO/IEC 8859-1 (extended ASCII py3) or pure ASCII (py2) characters
The unique name of the pcell
- Other Parameters
- star_coupler_in: PCell, locked
Input star coupler, managed by the AWG pcell
- star_coupler_out: PCell, locked
Output star coupler, managed by the AWG pcell
- waveguide_bundle: PCell and WaveguideBundle, TemplatedWaveguideBundle, locked
array of waveguides
Examples
>>> # This design function will give equidistant channels in the frequency domain >>> layout_params = filters.get_layout_params_1xM_demux_ghz( >>> aperture_in=ap_rib, >>> aperture_arms=ap_rib, >>> aperture_out=ap_rib, >>> waveguide_template=wg_tmpl, >>> output_spacing=4.0, M=M, >>> center_frequency=center_frequency, >>> channel_spacing=400, >>> verbose=True) >>> >>> print(layout_params) >>> >>> from awg_designer.sample_designs.awg.demux1xM import RectangularAWGNxM >>> awg = RectangularAWGNxM(n_inputs=1, >>> n_outputs=M, >>> N_arms=layout_params.pop('N_arms'), >>> aperture_in=ap_rib, >>> aperture_arms=ap_rib, >>> aperture_out=ap_rib, >>> trace_template=wg_tmpl, >>> multiaperture_class=filters.MultiApertureShallowMerged, >>> n_dummy_apertures=2, >>> ) >>> >>> lay = awg.Layout(bend_radius=40, **layout_params) >>> lay.write_gdsii('my_awg.gds')
Views
- Layout = <class 'awg_designer.sample_designs.awg.demux1xM.awg_nxm_pcell.RectangularAWGNxM.Layout'>¶