Examples

Silicon Photonics Examples

Devices from published papers, written in Laylight and, for comparison, in gdsfactory, gdstk and KLayout.

These examples are silicon photonic devices whose structure and dimensions come from published papers: waveguides and bends, splitters, interferometers, grating couplers, resonators, an arrayed waveguide grating, heaters and delay lines, and active devices with doped regions, germanium, lithium niobate and III-V material. Two circuits route waveguides between such devices: a fiber-array test structure and an optical phased array (see Auto Routing). Each page cites its paper, compiles the Laylight source in your browser and shows the layout, and lets you open the source in the DSL playground to change it.

Every device is also written in gdsfactory, gdstk and KLayout's Python module. The four implementations take the same parameters and produce the same layout: a script builds all of them and checks, layer by layer on the flattened result, that every implementation lies within 5 nm of the Laylight one (curves are discretized by each tool with a chord error of about 1 nm). Their code sizes are compared on Dedicated Syntax.

The sources are in examples/photonics in the repository, one directory per tool. Examples build on each other as a small library would: the Mach-Zehnder interferometer imports the MMI splitter, for instance, and the fiber-array test structure the interferometer and a grating coupler, in all four tools.

Passive devices

Waveguides and bendsRib and strip waveguides, circular, Euler and S-bends, and a rib-to-strip converter for compact bends.28 lines in Laylight · 37–51 in Python1×2 MMI splitterA multimode interference splitter with tapered access waveguides, the building block of the interferometers.18 lines in Laylight · 20–22 in PythonMach-Zehnder interferometersA balanced and an unbalanced MZI built from two MMIs, with delay arms widened to 1 µm by parabolic tapers.39 lines in Laylight · 42–49 in PythonGrating couplersUniform, apodized and focusing grating couplers that couple a single-mode fiber to silicon waveguides, from three published designs.71 lines in Laylight · 71–78 in PythonBroadband directional couplerA 50/50 directional coupler made broadband by an asymmetric phase-control section between two symmetric coupling sections.28 lines in Laylight · 28–31 in PythonWaveguide crossingA low-loss single-etch crossing of four identical tapers, each given by its widths at 13 points along 4.5 µm.12 lines in Laylight · 12–14 in PythonArrayed waveguide gratingA 12-channel, 400 GHz demultiplexer: two star couplers in Rowland mounting joined by 40 arms whose lengths step by 14.96 µm.76 lines in Laylight · 64–80 in PythonMicroring and Euler racetrack resonatorsA 1.5 µm-radius all-pass microring and an ultrahigh-Q racetrack with Euler bends and a concentric pulley coupler at one bend.34 lines in Laylight · 36–48 in PythonThermo-optic phase shiftersA straight TiN heater over a strip waveguide and a compact folded double-spiral waveguide under a meander heater, both with bond pads.29 lines in Laylight · 40–43 in PythonSpiral delay lineTwo interleaved Archimedean spirals of a 2 µm multimode waveguide, joined by an Euler S-bend, with bent tapers to single-mode input and output.40 lines in Laylight · 27–36 in Python

Active devices

Circuits and routing