# DRC rules for PhotonForge's Basic Technology (a demo stack, not a foundry's).
# Run: klayout -b -r basic_technology.drc -rd input=chip.gds -rd report=drc.lyrdb
source($input)
report("Basic Technology DRC", $report)

core  = input(2, 0)   # WG_CORE
slab  = input(3, 0)   # SLAB
metal = input(5, 0)   # METAL

core.width(0.2.um).output("WG.W.1", "waveguide core narrower than 0.2 um")
core.space(0.2.um).output("WG.S.1", "waveguide cores closer than 0.2 um")
slab.width(1.0.um).output("SLAB.W.1", "slab narrower than 1.0 um")
metal.width(2.0.um).output("M.W.1", "metal narrower than 2.0 um")
metal.separation(core, 1.0.um).output("M.WG.1", "metal closer than 1.0 um to a waveguide core")
