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.