Examples

Spiral Delay

Build and export a compact spiral optical delay line.

SpiralDelay routes a long waveguide path through a compact footprint. It is useful for delay lines and path-length experiments where the input and output ports should remain accessible at the outside of the spiral.

Code

from pathlib import Path

import laylight
from laylight.render import export_layout_png, new_layout
from laylight.structure.spiral import SpiralDelay


layout, top, tech = new_layout("SPIRAL_DELAY_EXAMPLE")
device = SpiralDelay(layout=layout, tech=tech)

laylight.Placer(device).into(top)

output_dir = Path("build/examples")
output_dir.mkdir(parents=True, exist_ok=True)
layout.write(str(output_dir / "spiral_delay.gds"))
export_layout_png(
    layout,
    output_dir / "spiral_delay.png",
    cell=top,
    max_pixels=960,
)

The code writes spiral_delay.gds and spiral_delay.png to build/examples.

Rendered layout

Rendered spiral delay line

The turns, straight_length, and pitch parameters control the path length and footprint. pitch must remain larger than the waveguide width.

On this page