How niftylab/laygo2 works
LAYGO2 is a Python framework for generating custom IC layouts. A designer defines technology-specific templates and placement/routing grids, builds a design from physical objects, and exports the result through tool or data-format interfaces. The graph preserves the documented object-model stages and the major interface options. Some runtime links are based only on imports or examples in the supplied excerpts; unverified workflow links are dashed.
Main entry points: database.py Design database · routing.py Routing grids · laygo2_tech_templates.py Tech templates · core.py Coordinate grids
Components 19
Design model
- Layout templates
laygo2/object/template/core.py - Routing meshes
laygo2/object/template/routing.py - Coordinate grids
laygo2/object/grid/core.py - Placement grids
laygo2/object/grid/placement.py - Routing grids
laygo2/object/grid/routing.py - Layout objects
laygo2/object/physical.py - Design database
laygo2/object/database.py
Technology setup
- Technology config
laygo2_tech_quick_start/laygo2_tech.yaml - Tech templates
laygo2_tech_quick_start/laygo2_tech_templates.py - Tech grids
laygo2_tech_quick_start/laygo2_tech_grids.py
Interchange interfaces
- YAML templates
laygo2/interface/yaml.py - GDS export
laygo2/interface/gdspy.py - SKILL export
laygo2/interface/skill.py - BAG export
laygo2/interface/bag.py - Magic export
laygo2/interface/magic.py - Layout plotting
laygo2/interface/mpl.py
External tools
- CAD tools
- YAML files
Other components
- IC designer
Connections 25
- IC designer → Design database: creates design
- IC designer → Tech templates: selects technology
- Technology config → Tech templates: configures
- Tech templates → Layout templates: builds templates
laygo2_tech_quick_start/laygo2_tech_templates.py - Tech grids → Coordinate grids: builds grids
laygo2_tech_quick_start/laygo2_tech_grids.py - Tech grids → Design database: uses design database
laygo2_tech_quick_start/laygo2_tech_grids.py - Design database → Layout objects: stores objects
laygo2/object/database.py - Design database → Layout templates: instantiates from
- Design database → Placement grids: places on
- Design database → Routing grids: routes on
- Placement grids → Coordinate grids: extends
laygo2/object/grid/placement.py - Routing grids → Coordinate grids: extends
laygo2/object/grid/routing.py - Routing grids → Layout objects: creates wires
laygo2/object/grid/routing.py - Routing meshes → Layout objects: generates instances
laygo2/object/template/routing.py - IC designer → YAML templates: imports templates
- YAML templates → YAML files: reads or writes
laygo2/interface/yaml.py - Design database → GDS export: exports layout
- Design database → SKILL export: exports layout
- Design database → BAG export: exports layout
- Design database → Magic export: exports layout
- Design database → Layout plotting: plots layout
- GDS export → CAD tools: writes layout
- SKILL export → CAD tools: targets
- BAG export → CAD tools: targets
- Magic export → CAD tools: targets