Open course · silicon photonics · GSiP teaching PDK

From layout
to simulation

A course on foundry-compatible simulation of silicon photonic devices. You draw the layout in gdsfactory, describe the process once, and Ansys Lumerical builds every structure from the GDS file. Each number on these pages comes out of a script in the repository.

chapters
5
devices simulated
6of 28
solvers
6
tests
146

The device library as a wafer. Lit dies are simulated, the others are planned. Point at a die.

01 Why

What foundry-compatible means

A common way to simulate a device is to draw it inside the simulator and type the layer stack in by hand. When you design for a foundry, the process is fixed and the layout is what you deliver. The simulation then has to show what that layout becomes on that process.

The ring modulator of chapter 2. Shapes from its GDS file, heights from the process table, drawn 10 times larger than the widths. See chapter 3.

Point at a level, or tab to it.

The usual way

The structure is typed into each script

Every script draws the device again and repeats the stack: thicknesses, materials, doping. Nothing ties that structure to the layout you send to the foundry.

fdtd.addrect()
fdtd.set("name", "core")
fdtd.set("y span", 0.5e-6)
fdtd.set("z span", 0.22e-6)
fdtd.set("material", "Si (Silicon) - Palik")
# ... the slab, the oxide, the implants and the metals,
# and all of it again in the next script

typed by hand. An illustration, not a file of this course.

The foundry-compatible way

The structure is built from two files

The layout is drawn with the PDK, and a process file describes the stack once. Layer Builder turns the two into the 3D structure, in the same way for FDTD, MODE, CHARGE and HEAT. No simulation script contains a thickness, a material or a doping level.

app.addlayerbuilder()
app.loadgdsfile("devices/gds/ring_modulator.gds")
app.loadprocessfile("gsip_process_file_py/gsip_process.lbr")
# the stack, the materials and the doping
# come from the process file

the two files. As in lumerical_simulations/flow.py.

02 The flow

One layout, one process file

The course follows the design flow of a foundry PDK: four stages in a row and, underneath them, the PDK that feeds them. Here the PDK is a teaching process called GSiP, short for generic silicon photonics. It is written down twice, as a gdsfactory PDK for the layout and as a process file for the simulator, and tests check that the two agree.

GSiP teaching PDK

A public layer map and public process data. It supplies what the stages above it need.

Chapter 5: put your foundry's PDK here

From the PDK

Cells and layers

gsip_technology.py
devices/*_builder.py

26 layers. The ring modulator is drawn on 16 of them.

Chapter 1
1

Device layout

gdsfactory + KLayout

Chapter 2

A builder draws the device from parameters and checks it against the design rules.

DRC passed: 0 errors, 0 warnings

ring_modulator_builder.py
→ ring_modulator.gds

From the PDK

Process file with the layer definition

gsip_csv/*.csv
→ gsip_process.lbr

Chapter 3
metal 3 2 µm metal 2 700 nm metal 1 700 nm heater 150 nm silicon 220 nm oxide 2 µm
2

Device simulation

Ansys Lumerical

Chapter 4, steps 0 to 5
Field where the bus waveguide passes the ring
FDTD coupler field
Mode of the rib waveguide
MODE waveguide mode
Carriers in the PN junction at 4 volts of reverse bias
CHARGE carriers at 4 V
Temperature rise around the heater
HEAT temperature
Layer Builder builds every structure from the GDS file and the process file
3

Compact model

one device, six numbers

Chapter 4, step 6
Ring modulator model
κ²0.0160
neff2.5702
ng3.936
loss per turn0.069 dB
Δneff at −4 V1.71 × 10⁻⁴
heater124 pm/mW

Numbers from ring_modulator.txt, rib_passive.txt, active.txt

Steps 1 to 5 of chapter 4 produce these numbers. Step 6 puts them into one circuit element.

From a real PDK

Compact model library

A foundry ships these models with its PDK. The teaching PDK has none, so stage 3 builds the model.

4

Circuit simulation

INTERCONNECT

Chapter 4, step 6
Transmission of the ring for junction biases from 0 to 4 volts
resonance against junction bias, 0 to 4 V
Transmission of the ring for heater powers from 0 to 20 milliwatts
resonance against heater power, 0 to 20 mW

what a stage hands to the nextwhat the PDK suppliesThe arrangement follows the design flow shown at the Ansys and Tower Semiconductor workshop (2025). The pictures and the numbers are those of chapter 4.

03 Results

What the simulations show

The pictures below are drawn in your browser from the result files of the repository. The brightness is the field strength that FDTD computed. The page adds the moving fringes, at the wavelength in the waveguide, to show which way the light runs.

Half the light crosses over

A directional coupler, 15 µm long with a 200 nm gap, at 1550 nm. Light enters at the lower left, and half of it leaves in the upper waveguide.

Each bright dot is one photon. Inside the coupler it is in both waveguides at once, weighted by the simulated field; at the end a detector finds it in one of them, with the probabilities that FDTD gives.

The directional coupler
cross
0.4986
through
0.5007
loss
0.003dB

Numbers from coupler_fdtd.txt

Even supermoden = 2.4559
Odd supermoden = 2.4353, slower
The photon herein the lower core
Δφ 0.00 radthe odd mode behind the even one

Why half of it crosses. In the 15 µm straight section the light is two supermodes at once. The odd one is slower, so it falls behind the even one by Δφ, and as Δφ grows they cancel in the lower core and add up in the upper one. From the FDTD field, Δφ grows by 0.0842 rad per µm; from the mode solver alone, 2π·Δn/λ with Δn = 0.0206, it should grow by 0.0837. Cross-sections of the two 500 × 220 nm silicon cores, 200 nm apart; cyan and pink are the two signs of the field.

Move the length

The cross curve is the law fitted in step 2 of the coupler chapter: sin²(π/2 · (L + Lbends) / Lπ), with Lπ = 35.81 µm and Lbends = 2.88 µm. The dots are the four FDTD runs it was fitted to. The through curve is one minus the cross curve.

Move the bias

The ring modulator in a circuit, by INTERCONNECT. Each curve is one simulated bias, from 0 to 4 V in steps of 0.25 V. The resonance moves by 11.2 pm per volt on average, and the dip is deepest at 0 V, where the ring is critically coupled.

Chapter 4, step 6

One image in, two out

A 1×2 MMI splitter. The multimode section is 5.5 µm long, where the input field forms two images. The loss is 0.085 dB by FDTD.

The 1×2 MMI splitter

A little light enters the ring

The bus passes the ring at a gap of 200 nm. FDTD gives the fraction that couples in, and the ring is then designed around it.

Chapter 4, step 1

04 The course

Five chapters, in order

The first chapters build one process twice, as a PDK for the layout and as a process file for the simulator. Chapter 4 simulates a ring modulator with them, and chapter 5 is about the day you hold a real foundry's manual.

Who it is for

Graduate students and engineers who design silicon photonic devices and want their simulations to show what a foundry will build. You should be able to read Python and have met waveguides and ring resonators before. You need no foundry PDK and no NDA: the teaching process is made of public values.

What you need

Python 3.12 or 3.13 and uv, for the layout, the design-rule check, the tests and every figure. Ansys Lumerical 2025 R1 with FDTD, MODE, CHARGE, HEAT and INTERCONNECT, for the simulations. The results are kept in the repository, so every chapter can be read without Lumerical.

How long it takes

About 3 hours of reading for the 5 chapters, and 80 minutes for the 5 device chapters. The seven simulation steps of the ring modulator take about 50 minutes of solver time on the author's machine.

  1. 01 The PDK Layers, stack, cross-sections and design rules, written as code. no Lumerical needed28 min
  2. 02 The device Drawing the ring modulator, then checking it with a design-rule check (DRC) and a connectivity check. no Lumerical needed28 min
  3. 03 The process file The same process as tables for the Layer Builder, and how to verify it. 27 min
  4. 04 The simulations Seven steps from the coupler to the circuit, with the pitfalls of each. 72 min
  5. 05 Your foundry Moving the flow to a real PDK without leaking NDA data. 27 min

05 Device library

One device at a time

Every finished device comes with the same four things: a builder that passes the design-rule check, simulation scripts that load its GDS with the process file, figures drawn from the kept results, and a chapter that explains the method, the numbers and the limits.

06 Circuits

Devices become circuits

The devices of the library are put together into circuits, in four directions. The first is done: a 4 × 4 mesh of interferometers that holds any 4 × 4 unitary matrix. Its chapter lets you give it a matrix, read the sixteen heater voltages it needs, and send a vector of light through it, in your browser.

4 × 4 Clements mesh

Six interferometers and sixteen heaters that set any 4 × 4 unitary matrix of light.

program it in your browser
  1. Programmable photonics4 × 4 Clements meshsimulated
  2. Optical computingReal matrix multipliersimulated
  3. Optical interconnectsWDM microring linkplanned
  4. Optical switching4 × 4 switch fabricplanned
  5. All circuits

07 Start

Run it yourself

The layouts, the design-rule check and every figure run without Lumerical: the results are kept in the repository. You need Python 3.12 or 3.13 and uv. The simulations need Ansys Lumerical.

shell
# the layout and the tests
$ git clone https://github.com/q3430468220-tech/photonics-layout-cookbook.git
$ cd photonics-layout-cookbook
$ uv sync
$ uv run python devices/ring_modulator_builder.py
DRC passed: 0 errors, 0 warnings
$ uv run pytest
146 passed

# redraw a figure from the kept results
$ uv run python lumerical_simulations/ring_modulator/figures/fig2_passive.py