masque/examples/tutorial
2024-12-12 23:47:46 -08:00
..
basic_shapes.py import Sequence et al from collections.abc not typing 2024-07-28 19:33:16 -07:00
devices.py import Sequence et al from collections.abc not typing 2024-07-28 19:33:16 -07:00
library.py import Sequence et al from collections.abc not typing 2024-07-28 19:33:16 -07:00
pather.py add the toolctx() context manager to simplify temporary retool() calls 2024-12-12 23:47:46 -08:00
pcgen.py be more consistent about when copies are made 2024-07-29 03:13:23 -07:00
README.md Add RenderPather tutorial, tutorial README, and some minor doc updates 2023-10-15 16:18:34 -07:00
renderpather.py import Sequence et al from collections.abc not typing 2024-07-28 19:33:16 -07:00

masque Tutorial

Contents

  • basic_shapes:
    • Draw basic geometry
    • Export to GDS
  • devices
    • Reference other patterns
    • Add ports to a pattern
    • Snap ports together to build a circuit
    • Check for dangling references
  • library
    • Create a LazyLibrary, which loads / generates patterns only when they are first used
    • Explore alternate ways of specifying a pattern for .plug() and .place()
    • Design a pattern which is meant to plug into an existing pattern (via .interface())
  • pather
    • Use Pather to route individual wires and wire bundles
    • Use BasicTool to generate paths
    • Use BasicTool to automatically transition between path types
  • renderpather
    • Use RenderPather and PathTool to build a layout similar to the one in pather, but using Path shapes instead of Polygons.

Additionaly, pcgen is a utility module for generating photonic crystal lattices.

Running

Run from inside the examples directory:

cd examples/tutorial
python3 basic_shapes.py
klayout -e basic_shapes.gds