Four-Channel WDM Filter

In this notebook, we replicate the design and simulation results of a robust, fabrication-tolerant four-channel wavelength-division multiplexing (WDM) filter demonstrated in [1]. The filter is implemented using silicon-based microring resonators, specifically leveraging both single-ring resonators (1RR) and cascaded double-ring resonators (2RR). These structures exhibit distinct spectral responses, insertion losses, and crosstalk performance, which we compare through detailed electromagnetic simulations.
We systematically walk through the design process:
- Defining the silicon photonics technology with precise materials, layers, and fabrication parameters.
- Constructing and characterizing basic photonic components such as directional couplers, waveguides, and bends.
- Assembling single-ring (1RR) and double-ring (2RR) resonator filters, then cascading these components to form complete four-channel WDM multiplexers.
- Simulating and visualizing the scattering matrix (S-matrix) responses.
Reference:
- De Heyn, P., et al., “Fabrication-Tolerant Four-Channel Wavelength-Division-Multiplexing Filter Based on Collectively Tuned Si Microrings,” Journal of Lightwave Technology, 2013 31 (16), 2785–2792, doi: 10.1109/JLT.2013.2273391.
import matplotlib.pyplot as pltimport numpy as npimport photonforge as pfimport tidy3d as tdfrom photonforge.live_viewer import LiveViewer
viewer = LiveViewer()wavelengths = np.linspace(1.543, 1.558, 201)LiveViewer started at http://127.0.0.1:37849. Call its 'stop()' method to free the port.Defining the Technology Stack
Section titled “Defining the Technology Stack”We define a custom silicon photonics technology, closely following the parameters described in the paper. The technology includes specifications for various materials and layers, such as silicon waveguides, silicon slabs, p-doped silicon regions, tungsten vias, and aluminum metal interconnects. Each layer has clearly defined thicknesses, materials, and visual properties suitable for accurate 3D simulation and visualization. The waveguide geometry is specifically chosen to reproduce the dimensions provided in the referenced design.
@pf.parametric_technologydef iSiPP_technology( *, si_thickness=0.22, si_slab_thickness=0.22 - 0.07, via_thickness=0.8, metal_thickness=0.4, si=td.material_library["cSi"]["Palik_Lossless"], si_doping=td.Medium(permittivity=3.485**2), sio2=td.material_library["SiO2"]["Palik_Lossless"], tungsten=td.material_library["W"]["RakicLorentzDrude1998"], metal=td.material_library["Al"]["RakicLorentzDrude1998"]): """ Defines the iSiPP technology stack with material properties, layers, and 3D extrusion specifications for silicon photonic components.
Parameters: - si_thickness: Silicon thickness in µm - si_slab_thickness: Slab thickness in µm - via_thickness: Thickness of tungsten via layer in µm - metal_thickness: Thickness of top metal layer in µm - si: Undoped crystalline silicon material - si_doping: P-doped silicon material - sio2: Oxide cladding material - tungsten: Metal for via - metal: Top metal interconnect layer (aluminum) """
# Layer definitions with visual properties layers = { "Si": pf.LayerSpec((1, 0), description="Si", color="#324aa818", pattern="/"), "Si Slab": pf.LayerSpec( (2, 0), description="Si Slab", color="#5c74d118", pattern="//" ), "Si P-doping": pf.LayerSpec( (3, 0), description="Si P-doping", color="#ed291f18", pattern="//" ), "Tungsten Via": pf.LayerSpec( (10, 0), description="Tungsten Via", color="#80653718", pattern="//" ), "M1": pf.LayerSpec((11, 0), description="M1", color="#a19e9918", pattern="//"), }
# Mask definitions si_mask = pf.MaskSpec((1, 0)) si_slab_mask = pf.MaskSpec((2, 0)) si_doping_mask = pf.MaskSpec((3, 0)) via_mask = pf.MaskSpec((10, 0), (11, 0), "*") metal_mask = pf.MaskSpec((11, 0))
# Visualization colors for 3D model rendering si = si.updated_copy(viz_spec=td.VisualizationSpec(facecolor="#324aa8", alpha=1)) sio2 = sio2.updated_copy( viz_spec=td.VisualizationSpec(facecolor="#dff7f7", alpha=0.8) ) si_doping = si_doping.updated_copy( viz_spec=td.VisualizationSpec(facecolor="#ed291f", alpha=1) )
# Vertical extrusion heights z_via = si_thickness z_metal = z_via + via_thickness
# Extrusion specifications extrusion_specs = [ pf.ExtrusionSpec( si_mask, limits=(0, si_thickness), medium=si, sidewall_angle=0 ), pf.ExtrusionSpec( si_slab_mask, limits=(0, si_slab_thickness), medium=si, sidewall_angle=0 ), pf.ExtrusionSpec( si_doping_mask, limits=(0, si_thickness), medium=si_doping, sidewall_angle=0 ), pf.ExtrusionSpec( via_mask, limits=(z_via, z_via + via_thickness), medium=tungsten, sidewall_angle=0, ), pf.ExtrusionSpec( metal_mask, limits=(z_metal, z_metal + metal_thickness), medium=metal, sidewall_angle=0, ), ]
# Port specification ports = { "Strip_450": pf.PortSpec( description="Strip waveguide, TE, 450 nm wide", width=2, limits=(-1, 1.22), num_modes=1, target_neff=3.5, path_profiles=[(0.45, 0, (1, 0))], ) }
# Technology object tech = pf.Technology( name="iSiPP", version="1.0", layers=layers, extrusion_specs=extrusion_specs, ports=ports, background_medium=sio2, )
return tech12:59:11 -03 WARNING: The material-library variant 'Palik_Lossless' is deprecated and maps to 'Palik_LowLoss' because it contains a tiny fitted loss despite its name. Use 'Palik_NoLoss' where available for a zero-loss Palik model.
WARNING: The material-library variant 'Palik_Lossless' is deprecated and maps to 'Palik_LowLoss' because it contains a tiny fitted loss despite its name. Use 'Palik_NoLoss' where available for a zero-loss Palik model.
We instantiate the defined technology, set it as the default technology for PhotonForge, and configure general simulation parameters such as the default mesh refinement and port specifications. We also set the Tidy3D logging level to "ERROR" to reduce non-essential output during simulation. However, users should always run with all warnings enabled when working on a new project and only suppress them once they have verified that the warnings are understood and can be safely ignored.
# Instantiate the defined iSiPP technologytech = iSiPP_technology()
# Set Tidy3D logging level to reduce verbosity (enable full warnings when debugging new projects)td.config.logging.level = "ERROR"
# Set the iSiPP technology as the default for PhotonForgepf.config.default_technology = tech
# Define default mesh refinement level for simulationspf.config.default_mesh_refinement = 15
# Extract port specification from technology definitionport_spec = tech.ports["Strip_450"]
# Configure default keyword arguments for PhotonForge componentspf.config.default_kwargs = {"port_spec": port_spec}
techLayers
| Name | Layer | Description | Color | Pattern | Device marker | Conductive | Min. width (μm) | Min. spacing (μm) |
|---|---|---|---|---|---|---|---|---|
| Si | (1, 0) | Si | #324aa818 | / | ||||
| Si Slab | (2, 0) | Si Slab | #5c74d118 | // | ||||
| Si P-doping | (3, 0) | Si P-doping | #ed291f18 | // | ||||
| Tungsten Via | (10, 0) | Tungsten Via | #80653718 | // | ||||
| M1 | (11, 0) | M1 | #a19e9918 | // |
Extrusion specs
| # | Mask | Limits (μm) | Sidewall (°) | Opt. Medium | Elec. Medium |
|---|---|---|---|---|---|
| 0 | 'Si' | 0, 0.22 | 0 | cSi_PalikLowLoss | cSi_PalikLowLoss |
| 1 | 'Si Slab' | 0, 0.15 | 0 | cSi_PalikLowLoss | cSi_PalikLowLoss |
| 2 | 'Si P-doping' | 0, 0.22 | 0 | Medium(viz_spec={'facecolor':…… '#ed291f', 'edgecolor': '#ed291f'}, permittivity=12.145225) | Medium(viz_spec={'facecolor':…… '#ed291f', 'edgecolor': '#ed291f'}, permittivity=12.145225) |
| 3 | 'Tungsten Via' * 'M1' | 0.22, 1.02 | 0 | W_RakicLorentzDrude1998 | W_RakicLorentzDrude1998 |
| 4 | 'M1' | 1.02, 1.42 | 0 | Al_RakicLorentzDrude1998 | Al_RakicLorentzDrude1998 |
Ports
| Name | Classification | Description | Width (μm) | Limits (μm) | Radius (μm) | Modes | Target n_eff | Path profiles (μm) |
|---|---|---|---|---|---|---|---|---|
| Strip_450 | optical | Strip waveguide, TE, 450 nm wide | 2 | -1, 1.22 | 0 | 1 | 3.5 | 'Si': 0.45 |
Background medium
- Optical: SiO2_Palik_LowLoss
- Electrical: SiO2_Palik_LowLoss
Inspecting the Port Mode
Section titled “Inspecting the Port Mode”We inspect the fundamental transverse electric (TE) mode of our waveguide to ensure that the mode profile is accurately confined and sufficiently small at the simulation domain boundaries. We use a higher mesh refinement for increased accuracy. The resulting electric field distribution and mode parameters confirm the desired mode characteristics.
# Solve for port modes at the waveguide input port (P0)mode_solver = pf.port_modes( port_spec, # Port specification frequencies=[pf.C_0 / 1.55], # Frequency corresponding to λ=1.55 µm mesh_refinement=40, # High mesh refinement for accurate mode profile group_index=True, # Calculate the mode's group index)
# Plot the electric field distribution (TE mode, mode_index=0)_ = mode_solver.plot_field("E", mode_index=0, f=pf.C_0 / 1.55)
# Export the calculated mode data to a DataFrame for inspectionmode_solver.data.to_dataframe()Uploading task 'Mode-ModeSolver…'Starting task 'Mode-ModeSolver': https://tidy3d.simulation.cloud/workbench?taskId=mo-0e332c6b-a41a-4a58-8f1d-f4bd0ce138a2Downloading data from 'Mode-ModeSolver'…| wavelength | n eff | k eff | loss (dB/cm) | TE (Ey) fraction | wg TE fraction | wg TM fraction | mode area | group index | dispersion (ps/(nm km)) | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| f | mode_index | ||||||||||
| 1.934145e+14 | 0 | 1.55 | 2.353273 | 0.0 | 0.0 | 0.976572 | 0.728762 | 0.819754 | 0.197801 | 4.275886 | 499.354889 |

Device layout
Section titled “Device layout”Directional Coupler Definition
Section titled “Directional Coupler Definition”We define directional couplers essential for our ring-based WDM circuits. The couplers are configured to support both bus-to-ring and ring-to-ring coupling with specified parameters, including coupling gap, radius, coupling length, doping areas for heaters, and tungsten vias for electrical connections. The device layout also incorporates necessary doping paths for heater implementation, providing thermal tuning capability as described in the reference paper.
wg_width, _ = port_spec.path_profile_for("Si")
def directional_coupler( *, coupling_gap=0.340, # Gap between waveguides (µm) radius=5, # Bend radius (µm) coupling_length=9, # Length of the coupling region (µm) doping_offset=1.2, # Offset of doping region from waveguide edge (µm) heater_width=1.0, # Width of heater doping region (µm) type="ring_to_ring" # Coupler type: "ring_to_ring" or "bus_to_ring"):
if type == "bus_to_ring": # Directional coupler configuration for bus-to-ring coupling component = pf.parametric.s_bend_ring_coupler( coupling_distance=wg_width + coupling_gap, radius=radius, coupling_length=coupling_length, s_bend_length=radius, s_bend_offset=port_spec.width, model=pf.Tidy3DModel(), ) else: # Directional coupler configuration for ring-to-ring coupling component = pf.parametric.dual_ring_coupler( coupling_distance=wg_width + coupling_gap, radius=radius, coupling_length=coupling_length, model=pf.Tidy3DModel(), )
# Compute doping region positions for heaters (first doping area) port1 = np.array(component.ports["P1"].center) + ( (heater_width + wg_width) / 2.0 + doping_offset, 0, )
# Compute doping region positions for heaters (second doping area) port3 = np.array(component.ports["P3"].center) + ( -(heater_width + wg_width) / 2.0 - doping_offset, 0, )
# Radius calculation for doping region paths doping_radius = radius - heater_width / 2.0 - wg_width / 2.0 - doping_offset
# First doping path construction (arc + straight segment + turn) doping1 = ( pf.Path(port1, heater_width) .arc(180, 180 + 90, radius=doping_radius) # Arc from 180° to 270° CCW .segment((coupling_length, 0), relative=True) ).turn(90, radius=doping_radius)
# Compute vertical offset between doping paths vertical_offset = ( -2 * doping_radius - heater_width - 2 * doping_offset - 2 * wg_width - coupling_gap )
# Second doping path (mirrored and translated from the first) doping2 = doping1.copy().rotate(180).translate((0, vertical_offset))
# Add doping regions to component component.add("Si P-doping", doping1, doping2)
# Add tungsten vias at doping region ends for electrical contacts via0 = pf.Circle(radius=0.2, center=port1) via1 = pf.Circle(radius=0.2, center=port1 + (0.2, -1)) via2 = pf.Circle(radius=0.2, center=port1 + (0.2, vertical_offset + 1)) via3 = pf.Circle(radius=0.2, center=port3) via4 = pf.Circle(radius=0.2, center=port3 + (-0.2, -1)) via5 = pf.Circle(radius=0.2, center=port3 + (-0.2, vertical_offset + 1)) component.add("Tungsten Via", via0, via1, via2, via3, via4, via5)
# Define port symmetries for Tidy3D simulations if type == "ring_to_ring": component.models["Tidy3D"].port_symmetries = [ ("P1", "P0", "P3", "P2"), # x-axis reflection ("P2", "P3", "P0", "P1"), # y-axis reflection ("P3", "P2", "P1", "P0"), # inversion symmetry ]
return component# Instantiate a directional coupler with 340 nm gap for 2RR configurationdc_2rr = directional_coupler(coupling_gap=0.340)
# Test the defined port symmetries (assert if test fails)assert dc_2rr.active_model.test_port_symmetries( dc_2rr, frequencies=[pf.C_0 / 1.55], grid_spec=8)
# Visualize the resulting layoutviewer(dc_2rr)Uploading task 'P0@0…'Uploading task 'P1@0…'Uploading task 'P2@0…'Uploading task 'P3@0…'Starting task 'P2@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-044572ac-03c9-4e6a-ac17-856ed3a6558dStarting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-fc45dec5-dbb9-439b-a4ef-c30746d34e60Starting task 'P1@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-111e93a4-15c0-4f59-ba3b-91b8f4783294Starting task 'P3@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-7df4a90e-affd-4ca0-8b5f-0634a3d7cf70Downloading data from 'P2@0'…Downloading data from 'P0@0'…Downloading data from 'P1@0'…Downloading data from 'P3@0'…# Instantiate a directional coupler with 205 nm gap for bus-to-ring couplingdc_2br = directional_coupler(coupling_gap=0.205, type="bus_to_ring")
# Display the component layoutviewer(dc_2br)The 1RR Single Resonator Filter
Section titled “The 1RR Single Resonator Filter”We construct a single-ring resonator (1RR) filter by connecting two identical bus-to-ring directional couplers in a loop. The port mapping enables both through and drop functionality. The layout is visualized to verify the closed-loop structure of the resonator.
@pf.parametric_componentdef filter_1rr(*, coupling_length=9.0, radius=5, coupling_gap=0.295): # Create two identical bus-to-ring directional couplers dc_1rr = directional_coupler( coupling_length=coupling_length, radius=radius, coupling_gap=coupling_gap, type="bus_to_ring", )
# Define netlist connecting the couplers into a single-ring resonator netlist_1RR = { "name": "1RR Filter", "instances": [dc_1rr, dc_1rr], # Two identical couplers "connections": [((1, "P1"), (0, "P3"))], # Connect inner ports to form a loop "ports": [ # Define external ports (0, "P0"), # Input (1, "P2"), # Drop (0, "P2"), # Through (1, "P0"), # Add port for symmetry or test ], "models": [pf.CircuitModel()], # Attach default model }
return pf.component_from_netlist(netlist_1RR) # Return the assembled component
# Instantiate and visualize the single-ring filter layoutone_rr = filter_1rr()viewer(one_rr)We compute the frequency-domain scattering matrix of the 1RR filter across the specified wavelength range. The results are plotted on a decibel scale to reveal the spectral response at the drop and through ports when light is injected into port P0. For comparison, we also overlay a measured spectrum from [1]. The measured wavelengths have been slightly shifted to align the resonance position with that of our simulated structure.
# Measurement datas10_measured = np.array( [ [1.537840, -22.136], [1.538349, -19.583], [1.538836, -16.838], [1.539209, -13.325], [1.539513, -9.957], [1.539679, -6.878], [1.539891, -3.559], [1.539986, -1.539], [1.540033, -1.010], [1.540124, -1.537], [1.540213, -3.460], [1.540369, -6.872], [1.540548, -9.947], [1.540819, -13.165], [1.541136, -15.999], [1.541546, -18.832], [1.541980, -20.750], ])
s20_measured = np.array( [ [1.538401, -0.593], [1.538838, -0.396], [1.539367, -0.487], [1.539710, -1.493], [1.539868, -3.800], [1.539956, -6.203], [1.539974, -9.472], [1.540012, -14.615], [1.540027, -19.808], [1.540058, -14.615], [1.540135, -9.422], [1.540186, -6.152], [1.540258, -3.796], [1.540400, -1.439], [1.540839, -0.233], [1.541390, -0.179], [1.541804, -0.656], ])
# Simulate the S-matrix over the defined wavelength ranges_matrix_1rr = one_rr.s_matrix(frequencies=pf.C_0 / wavelengths)
# Plot S-matrix in dB scale with P0 as the input portfig, axes = pf.plot_s_matrix(s_matrix_1rr, y="dB", input_ports=["P0"])
# Overlay measurement data with dashed line# The resonance wavelength is shifted to match simulationaxes[0].plot( s10_measured[:, 0] + 0.01163, s10_measured[:, 1], "--", label=r"P0@0 $\rightarrow$ P1@0 Measured",)axes[0].plot( s20_measured[:, 0] + 0.01163, s20_measured[:, 1], "--", label=r"P0@0 $\rightarrow$ P2@0 Measured",)
axes[0].set_xlim([1.549, 1.554])axes[0].set_ylim([-25, 0])axes[0].legend(loc="lower left")Uploading task 'P0@0…'Uploading task 'P1@0…'Uploading task 'P2@0…'Uploading task 'P3@0…'Uploading task 'Mode-StripwaveguideTE450nmwide…'Uploading task 'Mode-StripwaveguideTE450nmwide…'Uploading task 'Mode-StripwaveguideTE450nmwide…'Uploading task 'Mode-StripwaveguideTE450nmwide…'Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-dec8c45f-2f0f-4b78-9d47-f21627ffda26Starting task 'P1@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-ce4d0679-a44e-48a7-bccb-007c6d0c8a52Starting task 'Mode-StripwaveguideTE450nmwide': https://tidy3d.simulation.cloud/workbench?taskId=mo-59bcc4ab-04c2-4f87-a9c7-77b904b7800bStarting task 'P2@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-c9bfa9bf-93af-4b29-9272-95b54b985462Starting task 'P3@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-b9076ffa-dfda-45ee-b473-71db976b15f7Starting task 'Mode-StripwaveguideTE450nmwide': https://tidy3d.simulation.cloud/workbench?taskId=mo-9b79777b-1bad-4093-85a5-11dd533797acStarting task 'Mode-StripwaveguideTE450nmwide': https://tidy3d.simulation.cloud/workbench?taskId=mo-64cb75d3-e969-4a68-8390-9f214f637194Starting task 'Mode-StripwaveguideTE450nmwide': https://tidy3d.simulation.cloud/workbench?taskId=mo-71615ce5-c063-406f-85fe-bd83a63399a9Downloading data from 'P0@0'…Downloading data from 'P1@0'…Downloading data from 'Mode-StripwaveguideTE450nmwide'…Downloading data from 'P2@0'…Downloading data from 'P3@0'…Downloading data from 'Mode-StripwaveguideTE450nmwide'…Downloading data from 'Mode-StripwaveguideTE450nmwide'…Downloading data from 'Mode-StripwaveguideTE450nmwide'…
Assembling a 4-Channel 1RR-Based WDM Filter
Section titled “Assembling a 4-Channel 1RR-Based WDM Filter”We build a four-channel WDM filter by cascading four 1RR filters with increasing ring circumference. The coupling length is incremented in steps to shift the resonance of each ring. Straight waveguides are inserted between adjacent rings to complete the bus structure. The resulting multiplexer layout is returned for visualization.
# Define ring length increment parametersadded_length = 0.075coupling_length = 9
# Define a straight waveguide and a bend components for circuit usewg = pf.parametric.straight(length=31)bend = pf.parametric.bend(name="Bend", radius=5)
# Create four 1RR filters with increasing coupling lengthsone_rr_0 = filter_1rr(coupling_length=coupling_length)one_rr_1 = filter_1rr(coupling_length=coupling_length + added_length)one_rr_2 = filter_1rr(coupling_length=coupling_length + 2 * added_length)one_rr_3 = filter_1rr(coupling_length=coupling_length + 3 * added_length)
# Create a netlist describing the 4-channel 1RR multiplexer circuitnetlist = { "name": "4-Channel MUX 2RR", "instances": { "1rr0": one_rr_0, # First ring "1rr1": one_rr_1, # Second ring "1rr2": one_rr_2, # Third ring "1rr3": one_rr_3, # Fourth ring "wg0": wg, # Bus segment between ring 0 and 1 "wg1": wg, # Bus segment between ring 1 and 2 "wg2": wg, # Bus segment between ring 2 and 3 }, "connections": [ (("wg0", "P0"), ("1rr0", "P3")), # Connect ring 0 to ring 1 via wg0 (("1rr1", "P1"), ("wg0", "P1")), (("wg1", "P0"), ("1rr1", "P3")), # Connect ring 1 to ring 2 via wg1 (("1rr2", "P1"), ("wg1", "P1")), (("wg2", "P0"), ("1rr2", "P3")), # Connect ring 2 to ring 3 via wg2 (("1rr3", "P1"), ("wg2", "P1")), ], "ports": [ # Expose ports for drop, input, and through for all rings ("1rr0", "P1"), ("1rr0", "P0"), ("1rr0", "P2"), ("1rr1", "P0"), ("1rr1", "P2"), ("1rr2", "P0"), ("1rr2", "P2"), ("1rr3", "P0"), ("1rr3", "P2"), ("1rr3", "P3"), ], "models": [pf.CircuitModel()],}
# Generate the 4-channel multiplexer component from the netlistmux_1rr = pf.component_from_netlist(netlist)viewer(mux_1rr)# Compute the S-matrix of the 1RR-based 4-channel multiplexers_matrix_mux_1rr = mux_1rr.s_matrix(frequencies=pf.C_0 / wavelengths)
# Plot the S-matrix with input from port P0 in dB scalefig, axes = pf.plot_s_matrix( s_matrix_mux_1rr, y="dB", input_ports=["P0"], output_ports=["P1", "P3", "P5", "P7"])
# Adjust plot limits to highlight relevant spectral regionaxes[0].set_ylim([-30, 0])axes[0].set_xlim([1.544, 1.556])
# Set legend location for better visibilityaxes[0].legend(loc="lower left")12:59:47 -03 Loading simulation from local cache. View cached task using web UI at 'https://tidy3d.simulation.cloud/workbench?taskId=fdve-dec8c45f-2f0 f-4b78-9d47-f21627ffda26'.
Loading simulation from local cache. View cached task using web UI at 'https://tidy3d.simulation.cloud/workbench?taskId=fdve-ce4d0679-a44 e-48a7-bccb-007c6d0c8a52'.
Loading simulation from local cache. View cached task using web UI at 'https://tidy3d.simulation.cloud/workbench?taskId=fdve-c9bfa9bf-93a f-4b29-9272-95b54b985462'.
Loading simulation from local cache. View cached task using web UI at 'https://tidy3d.simulation.cloud/workbench?taskId=fdve-b9076ffa-dfd a-45ee-b473-71db976b15f7'.
Uploading task 'P0@0…'Uploading task 'P1@0…'Uploading task 'P2@0…'Uploading task 'P3@0…'Uploading task 'P0@0…'Uploading task 'P1@0…'Uploading task 'P2@0…'Uploading task 'P3@0…'Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-f4218268-2db2-4c30-a04b-912c6b773a35Starting task 'P1@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-f33c143a-702d-4fdf-ad0b-89f88166a061Uploading task 'P0@0…'Starting task 'P2@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-81bb1c29-19a8-47ac-bd14-07b8ec6cbe3bUploading task 'P1@0…'Starting task 'P3@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-e2cbe534-c5e2-4d61-a355-b1f855477ef4Uploading task 'P2@0…'Uploading task 'P3@0…'Uploading task 'Mode-StripwaveguideTE450nmwide…'Downloading data from 'P0@0'…Downloading data from 'P1@0'…Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-dd09830e-8bd7-410d-bdf6-a9f9b67d4d5cStarting task 'P1@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-838e9fd6-fe6f-4898-8716-da70034ce843Downloading data from 'P2@0'…Starting task 'P3@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-653a2f94-ce34-448d-a7da-808823e80763Starting task 'P2@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-94f32e6e-67c6-40bf-990e-75a0d34b9530Downloading data from 'P3@0'…Downloading data from 'P0@0'…Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-a5c86a31-8c9c-4b6b-955c-e08ce31e759dDownloading data from 'P1@0'…Starting task 'P1@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-5a73c119-07e3-4cb3-93a0-e001bf402f66Starting task 'P2@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-9c6e0d16-4791-4d6f-8a25-ffdde48d5f57Downloading data from 'P3@0'…Starting task 'P3@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-76cf4122-f1d3-4995-a7de-491090171d2aDownloading data from 'P2@0'…Starting task 'Mode-StripwaveguideTE450nmwide': https://tidy3d.simulation.cloud/workbench?taskId=mo-b86f58df-aa62-428a-a38d-c27dadbde3bbDownloading data from 'P0@0'…Downloading data from 'P1@0'…Downloading data from 'P2@0'…Downloading data from 'P3@0'…Downloading data from 'Mode-StripwaveguideTE450nmwide'…
The 2RR Double-Ring Resonator Filter
Section titled “The 2RR Double-Ring Resonator Filter”We define a double-ring resonator (2RR) filter by assembling directional couplers, waveguide bends, and straight waveguide segments. The couplers include bus-to-ring and ring-to-ring configurations, each with distinct coupling gaps. The layout includes bond pads designed to facilitate electrical connectivity and thermal tuning, closely replicating the design from the referenced paper.
@pf.parametric_componentdef filter_2rr( *, # Parameters for 2RR filter construction coupling_length=9.0, # Directional coupler length (µm) radius=5, # Ring radius (µm) rr_gap=0.340, # Ring-to-ring coupling gap (µm) br_gap=0.205, # Bus-to-ring coupling gap (µm) pad_width=10 # Bond pad width (µm)): # Directional coupler for ring-to-ring configuration dc_2rr = directional_coupler( coupling_gap=rr_gap, radius=radius, coupling_length=coupling_length )
# Directional coupler for bus-to-ring configuration dc_2br = directional_coupler( coupling_gap=br_gap, radius=radius, coupling_length=coupling_length, type="bus_to_ring", )
# Netlist for assembling the 2RR resonator netlist_2RR = { "name": "cascaded_ring_filter", "instances": { "bus_coupler0": dc_2br, "bus_coupler1": dc_2br, "ring_coupler0": dc_2rr, "bend0": bend, "bend1": bend, "wg0": wg, "wg1": wg, "wg2": wg, }, "connections": [ (("ring_coupler0", "P0"), ("bus_coupler0", "P1")), (("bus_coupler1", "P3"), ("ring_coupler0", "P1")), (("bend0", "P0"), ("bus_coupler0", "P0")), (("bend1", "P1"), ("bus_coupler0", "P2")), (("wg0", "P1"), ("bend0", "P1")), (("wg1", "P1"), ("bus_coupler1", "P2")), (("wg2", "P1"), ("bend1", "P0")), ], "ports": [ ("wg0", "P0"), # Input port ("wg1", "P0"), # Drop port ("wg2", "P0"), # Add port ("bus_coupler1", "P0"), # Through port ], "models": [pf.CircuitModel()], }
# Create the 2RR component from the netlist two_rr = pf.component_from_netlist(netlist_2RR)
# Calculate bond pad and connecting rectangle positions based on coupler ports p0_center = np.array(dc_2br.ports["P0"].center) p1_center = np.array(dc_2br.ports["P1"].center) p2_center = np.array(dc_2br.ports["P2"].center) p3_center = np.array(dc_2br.ports["P3"].center)
# Create first bond pad (M1 layer) near port P0 bp1 = pf.Rectangle(center=p0_center, size=(pad_width, 2 * pad_width)) bp1.x_max = p0_center[0] + pad_width / 2.0 - 1.2 - 0.5 bp1.y_max = p0_center[1] - pad_width / 2.0
# Connecting rectangle from pad1 to coupler vias rect1 = pf.Rectangle(center=p0_center, size=(pad_width / 4.0, pad_width * 4)) rect1.x_max = bp1.x_max rect1.y_min = bp1.y_max
# Second bond pad (M1 layer) near port P3 bp2 = bp1.copy() bp2.x_min = p3_center[0] - pad_width / 2.0 + 1.2 + 0.5 bp2.y_min = p3_center[1] + pad_width / 2.0 + 4 * radius
# Connecting rectangle from pad2 to coupler vias rect2 = rect1.copy() rect2.x_min = bp2.x_min rect2.y_max = bp2.y_min
# Add bond pads and connecting rectangles to the 2RR component two_rr.add("M1", bp1, rect1, bp2, rect2)
return two_rr # Return the constructed 2RR component
# Instantiate and visualize the double-ring filter layouttwo_rr = filter_2rr()viewer(two_rr)# Measurement data for 2RR filters20_measured = np.array( [ [1.547004, -0.059], [1.547676, -0.665], [1.548100, -1.556], [1.548347, -3.848], [1.548517, -7.721], [1.548641, -13.056], [1.548749, -17.805], [1.548873, -20.973], [1.549035, -17.755], [1.549151, -13.013], [1.549274, -7.919], [1.549444, -3.881], [1.549668, -1.836], [1.549938, -1.083], [1.550317, -0.918], [1.550753, -0.905], ])s30_measured = np.array( [ [1.546996, -19.395], [1.547514, -14.840], [1.547931, -9.461], [1.548239, -4.255], [1.548409, -1.682], [1.548595, -0.399], [1.548757, -0.103], [1.549042, -0.105], [1.549243, -0.593], [1.549351, -1.475], [1.549544, -4.118], [1.549846, -9.049], [1.550309, -14.863], [1.550764, -19.154], ])
# Compute the S-matrix of the 2RR double-ring resonator filters_matrix_2rr = two_rr.s_matrix(frequencies=pf.C_0 / wavelengths)
# Plot the S-matrix with input from port P0, showing response in dBfig, axes = pf.plot_s_matrix(s_matrix_2rr, y="dB", input_ports=["P0"])
# Overlay measurement data with dashed line# The resonance wavelength is shifted to match simulationaxes[0].plot( s20_measured[:, 0] + 0.0029, s20_measured[:, 1], "--", label=r"P0@0 $\rightarrow$ P2@0 Measured",)axes[0].plot( s30_measured[:, 0] + 0.0029, s30_measured[:, 1], "--", label=r"P0@0 $\rightarrow$ P3@0 Measured",)
axes[0].set_xlim([1.548, 1.556])axes[0].set_ylim([-25, 1])axes[0].legend(loc="lower left")Uploading task 'P0@0…'Uploading task 'P1@0…'Uploading task 'P2@0…'Uploading task 'P3@0…'Uploading task 'P0@0…'Uploading task 'Mode-StripwaveguideTE450nmwide…'Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-35876f6e-6326-48b2-bcb4-a03ab42b5577Starting task 'P1@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-42072805-e57a-42f9-b2f7-a9fe036e3d2fStarting task 'P2@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-5c7385b9-dc3c-4168-99fb-ff8f70edfd43Starting task 'P3@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-bd90a289-0670-42e2-972b-411836c3f157Downloading data from 'P0@0'…Starting task 'Mode-StripwaveguideTE450nmwide': https://tidy3d.simulation.cloud/workbench?taskId=mo-40f35e21-d157-4f31-b280-f4b056b65eb6Downloading data from 'P1@0'…Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-0d1bba73-3910-424b-a445-0acf385b4208Downloading data from 'P2@0'…Downloading data from 'P3@0'…Downloading data from 'Mode-StripwaveguideTE450nmwide'…Downloading data from 'P0@0'…
Assembling a 4-Channel 2RR-Based WDM Multiplexer
Section titled “Assembling a 4-Channel 2RR-Based WDM Multiplexer”We construct a four-channel multiplexer by cascading four double-ring resonators (2RRs) with progressively increased coupling lengths to achieve distinct resonance frequencies for each channel. Waveguide segments interconnect the resonators to form a complete multiplexer structure, as specified in the referenced design.
# Define the base coupling length and incremental length for each channeladded_length = 0.075coupling_length = 9
# Instantiate four double-ring resonators (2RR) with incremental coupling lengthstwo_rr_0 = filter_2rr(coupling_length=coupling_length)two_rr_1 = filter_2rr(coupling_length=coupling_length + added_length)two_rr_2 = filter_2rr(coupling_length=coupling_length + 2 * added_length)two_rr_3 = filter_2rr(coupling_length=coupling_length + 3 * added_length)
# Netlist defining the 4-channel multiplexer based on 2RR resonatorsnetlist = { "name": "4-Channel MUX 2RR", "instances": { "2rr0": two_rr_0, # First resonator (channel 0) "2rr1": two_rr_1, # Second resonator (channel 1) "2rr2": two_rr_2, # Third resonator (channel 2) "2rr3": two_rr_3, # Fourth resonator (channel 3) "wg": wg, # Output waveguide after resonator 3 }, "connections": [ (("2rr1", "P1"), ("2rr0", "P3")), # Connect resonator 1 to resonator 0 (("2rr2", "P1"), ("2rr1", "P3")), # Connect resonator 2 to resonator 1 (("2rr3", "P1"), ("2rr2", "P3")), # Connect resonator 3 to resonator 2 (("wg", "P0"), ("2rr3", "P3")), # Connect final resonator output to wg3 ], "ports": [ ("2rr0", "P1"), # Multiplexer input ("2rr0", "P0"), ("2rr0", "P2"), ("2rr1", "P0"), ("2rr1", "P2"), ("2rr2", "P0"), ("2rr2", "P2"), ("2rr3", "P0"), ("2rr3", "P2"), ("wg", "P1"), # Final through output ], "models": [pf.CircuitModel()],}
# Assemble the multiplexer component from the netlistmux_2rr = pf.component_from_netlist(netlist)
viewer(mux_2rr)# Compute the S-matrix for the 4-channel 2RR-based multiplexers_matrix_mux_2rr = mux_2rr.s_matrix(frequencies=pf.C_0 / wavelengths)
# Plot the multiplexer spectral response with input from port P0fig, axes = pf.plot_s_matrix( s_matrix_mux_2rr, y="dB", input_ports=["P0"], output_ports=["P2", "P4", "P6", "P8"])
# Set plot limits to focus on the relevant spectral regionaxes[0].set_ylim([-30, 0])axes[0].set_xlim([1.544, 1.556])
# Position legend clearly in lower-left corneraxes[0].legend(loc="lower left")13:00:24 -03 Loading simulation from local cache. View cached task using web UI at 'https://tidy3d.simulation.cloud/workbench?taskId=fdve-35876f6e-632 6-48b2-bcb4-a03ab42b5577'.
Loading simulation from local cache. View cached task using web UI at 'https://tidy3d.simulation.cloud/workbench?taskId=fdve-42072805-e57 a-42f9-b2f7-a9fe036e3d2f'.
Loading simulation from local cache. View cached task using web UI at 'https://tidy3d.simulation.cloud/workbench?taskId=fdve-5c7385b9-dc3 c-4168-99fb-ff8f70edfd43'.
13:00:25 -03 Loading simulation from local cache. View cached task using web UI at 'https://tidy3d.simulation.cloud/workbench?taskId=fdve-bd90a289-067 0-42e2-972b-411836c3f157'.
Loading simulation from local cache. View cached task using web UI at 'https://tidy3d.simulation.cloud/workbench?taskId=fdve-0d1bba73-391 0-424b-a445-0acf385b4208'.
Uploading task 'P0@0…'Uploading task 'P1@0…'Uploading task 'P2@0…'Uploading task 'P3@0…'Uploading task 'P0@0…'Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-f26c5580-bf65-41d8-924a-40af02005c55Uploading task 'P0@0…'Starting task 'P1@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-eae56c4d-19aa-482d-a318-60dabf5b9b75Uploading task 'P1@0…'Starting task 'P2@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-bc6e4505-5b0d-4b53-aa87-f6200fba9984Uploading task 'P2@0…'Starting task 'P3@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-1be1fce5-a03e-44e2-982b-fae94d160127Uploading task 'P3@0…'Downloading data from 'P0@0'…Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-05b74fc6-f49e-43b6-be86-fa32b18fb649Downloading data from 'P1@0'…Downloading data from 'P2@0'…Uploading task 'P0@0…'Downloading data from 'P3@0'…Downloading data from 'P0@0'…Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-7a727f84-226e-4848-8cf8-fecbc56d5791Starting task 'P1@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-725a900b-9715-49af-ae8a-e570d4659538Starting task 'P2@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-0c8dd665-6a2b-416f-8033-1315aa9bd5fbStarting task 'P3@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-e9d235f3-cc83-4367-852f-2e20084b70c0Uploading task 'P0@0…'Downloading data from 'P0@0'…Downloading data from 'P1@0'…Uploading task 'P1@0…'Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-a3ef671a-4b8a-4aa6-af77-506fedc2f4e9Downloading data from 'P2@0'…Uploading task 'P2@0…'Downloading data from 'P3@0'…Uploading task 'P3@0…'Downloading data from 'P0@0'…Uploading task 'P0@0…'Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-557e42c8-7d67-4022-a67f-354b75e8246dStarting task 'P1@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-33330c1e-138f-4f1d-8891-0d8b6140ffbeStarting task 'P2@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-424258be-1e78-4a98-918f-fce3011f66f9Starting task 'P3@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-b146379c-4e06-42d5-a3ad-a6656a8d4348Downloading data from 'P0@0'…Downloading data from 'P1@0'…Downloading data from 'P2@0'…Starting task 'P0@0': https://tidy3d.simulation.cloud/workbench?taskId=fdve-299304d1-0394-452c-9cf4-641850981c30Downloading data from 'P3@0'…Downloading data from 'P0@0'…