# ihp-gmbh/ihp-open-pdk architecture

> Architecture diagram of the GitHub repository ihp-gmbh/ihp-open-pdk, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ihp-gmbh/ihp-open-pdk
- Repository: https://github.com/ihp-gmbh/ihp-open-pdk

## Overview

#### Purpose and entry points
This is the SG13G2 130 nm BiCMOS open PDK: a distributable technology package for analog, RF, mixed-signal, and digital IC design, not an application service. Users install the PDK into supported EDA environments, then consume its layout technology, device models, libraries, and verification decks. Primary operational entry points are `README.md`, `Makefile`, and tool-specific launch/install scripts such as `ihp-sg13g2/libs.tech/klayout/tech/drc/run_drc.py` and `ihp-sg13g2/libs.tech/klayout/tech/lvs/run_lvs.py`.

#### Technology and layout-authoring layer
KLayout is the central layout-facing integration: technology/layer mappings, macros, Python PCells, and netlist import are packaged together. Native and Python PCells generate geometry for MOS, HBT, passives, vias, ESD, pads, and inductors from technology parameters.
- `ihp-sg13g2/libs.tech/klayout/tech/sg13g2.lyt`
- `ihp-sg13g2/libs.tech/klayout/python/sg13g2_pycell_lib/sg13_tech.py`
- `ihp-sg13g2/libs.tech/klayout/python/import_netlist/import_netlist.py`

#### Physical verification pipeline
Layout data (GDS/OAS) is checked by KLayout DRC, then extracted and compared against schematic/netlist inputs by LVS. The top decks compose technology-specific FEOL/BEOL/device rules; Python runners provide batch execution. This is the principal correctness boundary between editable layout and signoff-style physical consistency.
- `ihp-sg13g2/libs.tech/klayout/tech/drc/ihp-sg13g2.drc`
- `ihp-sg13g2/libs.tech/klayout/tech/lvs/sg13g2.lvs`
- `ihp-sg13g2/libs.tech/klayout/tech/lvs/run_lvs.py`

#### Simulation-model layer
Foundational compact models and corner selectors support ngspice and Xyce simulation, including MOS, HBT, capacitors, diodes, resistors, ESD, mismatch, and statistical variants. Verilog-A sources support compiled behavioral/device-model workflows where simulator support requires it.
- `ihp-sg13g2/libs.tech/ngspice/models`
- `ihp-sg13g2/libs.tech/xyce/models`
- `ihp-sg13g2/libs.tech/verilog-a`

#### Schematic and simulation integrations
Xschem and Qucs-S expose primitive symbols, component libraries, setup, and executable examples that bind schematics to the supplied simulation models. Xschem additionally includes Monte Carlo/sweep helpers and testbench collections. These are user-facing authoring adapters rather than sources of physical truth.
- `ihp-sg13g2/libs.tech/xschem/xschemrc`
- `ihp-sg13g2/libs.tech/xschem/sg13g2_pr`
- `ihp-sg13g2/libs.tech/qucs-s/user_lib`

#### Digital implementation and reference IP
Reference standard-cell, I/O, and SRAM deliverables provide correlated physical, logical, timing, and circuit representations: GDS, LEF, Liberty, CDL/SPICE, and Verilog. Digital-flow adapters configure LibreLane/OpenROAD and parasitic extraction inputs around these assets.
- `ihp-sg13g2/libs.ref/sg13g2_stdcell`
- `ihp-sg13g2/libs.ref/sg13g2_io`
- `ihp-sg13g2/libs.ref/sg13g2_sram`
- `ihp-sg13g2/libs.tech/librelane/config.tcl`

#### Alternate physical-design integrations
Magic supplies technology, DRC, extraction, and layout-generation Tcl; Netgen setup supports netlist comparison; OpenRCX and ITF assets provide parasitic/extraction flow inputs. These parallel KLayout-centered flows and must remain aligned on layer/device semantics.
- `ihp-sg13g2/libs.tech/magic/ihp-sg13g2.tech`
- `ihp-sg13g2/libs.tech/netgen/ihp-sg13g2_setup.tcl`
- `ihp-sg13g2/libs.tech/parasitics/itf/sg13g2_typ.itf`

#### Validation, characterization, and delivery controls
Measured MOS/HBT/PNP data and reports substantiate model/device characterization; QA GDS fixtures exercise layout rules. GitHub Actions run DRC and LVS regressions, making deck/PCell/library changes subject to automated physical-verification checks.
- `ihp-sg13g2/libs.doc/meas`
- `ihp-sg13g2/libs.qa/drc`
- `.github/workflows/drc_regression.yml`
- `.github/workflows/lvs_regression.yml`

Main entry points: [`ihp-sg13g2/libs.tech/klayout/tech/lvs/sg13g2.lvs`](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/lvs/sg13g2.lvs) (KLayout LVS deck), [`ihp-sg13g2/libs.tech/klayout/tech/drc/ihp-sg13g2.drc`](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/drc/ihp-sg13g2.drc) (KLayout DRC deck), [`ihp-sg13g2/libs.tech/klayout/tech/sg13g2.lyt`](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/sg13g2.lyt) (KLayout technology), [`ihp-sg13g2/libs.tech/ngspice/models`](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/ngspice/models) (ngspice models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_layout["Layout authoring"]
  node_klayout_tech["KLayout technology<br/>[sg13g2.lyt]"]
  node_pcells["Python PCells<br/>parametric devices<br/>[sg13_tech.py]"]
  node_netlist_import["Netlist import<br/>KLayout adapter<br/>[import_netlist.py]"]
  node_layout_data["Editable layout<br/>GDS/OAS design"]
  node_magic["Magic technology<br/>alternate layout flow<br/>[ihp-sg13g2.tech]"]
end

subgraph group_verification["Physical verification"]
  node_drc_deck["KLayout DRC deck<br/>physical rules<br/>[ihp-sg13g2.drc]"]
  node_lvs_deck["KLayout LVS deck<br/>connectivity rules<br/>[sg13g2.lvs]"]
  node_lvs_runner["LVS batch runner<br/>execution script<br/>[run_lvs.py]"]
  node_schematic_netlist["Schematic netlist<br/>comparison input"]
  node_netgen["Netgen setup<br/>alternate LVS"]
end

subgraph group_simulation["Simulation integration"]
  node_ngspice_models["ngspice models<br/>compact model library<br/>[models]"]
  node_xyce_models["Xyce models<br/>compact model library<br/>[models]"]
  node_veriloga["Verilog-A models<br/>behavioral sources<br/>[verilog-a]"]
  node_xschem["Xschem integration<br/>schematic adapter<br/>[sg13g2_pr]"]
  node_qucs["Qucs-S library<br/>schematic adapter<br/>[user_lib]"]
end

subgraph group_digital["Reference IP & digital flow"]
  node_stdcell["Standard-cell library<br/>reference IP<br/>[sg13g2_stdcell]"]
  node_io_library["I/O library<br/>reference IP<br/>[sg13g2_io]"]
  node_sram["SRAM library<br/>reference IP<br/>[sg13g2_sram]"]
  node_librelane["LibreLane adapter<br/>digital-flow config<br/>[config.tcl]"]
  node_itf["Parasitic ITF<br/>extraction input<br/>[sg13g2_typ.itf]"]
end

subgraph group_validation["Validation & delivery"]
  node_readme["PDK documentation<br/>entry point<br/>[README.md]"]
  node_makefile["Build entry point<br/>automation"]
  node_measurements["Measured characterization<br/>device evidence<br/>[meas]"]
  node_qa_gds["DRC QA fixtures<br/>regression layouts<br/>[drc]"]
  node_drc_ci["DRC regression CI<br/>GitHub Actions<br/>[drc_regression.yml]"]
  node_lvs_ci["LVS regression CI<br/>GitHub Actions<br/>[lvs_regression.yml]"]
end

node_readme -->|"guides"| node_makefile
node_klayout_tech -->|"parameters"| node_pcells
node_klayout_tech -->|"defines layers"| node_netlist_import
node_pcells -->|"generates"| node_layout_data
node_netlist_import -->|"creates"| node_layout_data
node_klayout_tech -.->|"shared semantics"| node_drc_deck
node_klayout_tech -.->|"shared semantics"| node_lvs_deck
node_layout_data -->|"checked by"| node_drc_deck
node_drc_deck -->|"clean layout proceeds to"| node_lvs_deck
node_layout_data -->|"extracts from"| node_lvs_deck
node_schematic_netlist -->|"compared against"| node_lvs_deck
node_lvs_runner -->|"runs"| node_lvs_deck
node_xschem -->|"produces"| node_schematic_netlist
node_qucs -->|"produces"| node_schematic_netlist
node_xschem -->|"simulates with"| node_ngspice_models
node_qucs -->|"simulates with"| node_ngspice_models
node_xschem -->|"simulates with"| node_xyce_models
node_ngspice_models -.->|"extended by"| node_veriloga
node_xyce_models -.->|"extended by"| node_veriloga
node_measurements -->|"characterizes"| node_ngspice_models
node_measurements -->|"characterizes"| node_xyce_models
node_stdcell -->|"implementation views"| node_librelane
node_io_library -->|"implementation views"| node_librelane
node_sram -->|"implementation views"| node_librelane
node_itf -->|"parasitic input"| node_librelane
node_magic -.->|"aligned rules"| node_drc_deck
node_netgen -.->|"aligned comparison"| node_lvs_deck
node_qa_gds -->|"test layouts"| node_drc_ci
node_drc_ci -->|"regresses"| node_drc_deck
node_lvs_ci -->|"regresses"| node_lvs_runner

click node_readme "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/README.md"
click node_makefile "https://github.com/ihp-gmbh/ihp-open-pdk/tree/main/Makefile"
click node_klayout_tech "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/sg13g2.lyt"
click node_pcells "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/python/sg13g2_pycell_lib/sg13_tech.py"
click node_netlist_import "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/python/import_netlist/import_netlist.py"
click node_drc_deck "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/drc/ihp-sg13g2.drc"
click node_lvs_deck "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/lvs/sg13g2.lvs"
click node_lvs_runner "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/lvs/run_lvs.py"
click node_ngspice_models "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/ngspice/models"
click node_xyce_models "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/xyce/models"
click node_veriloga "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/verilog-a"
click node_xschem "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/xschem/sg13g2_pr"
click node_qucs "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/qucs-s/user_lib"
click node_stdcell "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.ref/sg13g2_stdcell"
click node_io_library "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.ref/sg13g2_io"
click node_sram "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.ref/sg13g2_sram"
click node_librelane "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/librelane/config.tcl"
click node_magic "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/magic/ihp-sg13g2.tech"
click node_netgen "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/netgen/ihp-sg13g2_setup.tcl"
click node_itf "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/parasitics/itf/sg13g2_typ.itf"
click node_measurements "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.doc/meas"
click node_qa_gds "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.qa/drc"
click node_drc_ci "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/.github/workflows/drc_regression.yml"
click node_lvs_ci "https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/.github/workflows/lvs_regression.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_klayout_tech,node_pcells,node_netlist_import,node_layout_data,node_magic toneBlue
class node_drc_deck,node_lvs_deck,node_lvs_runner,node_schematic_netlist,node_netgen toneAmber
class node_ngspice_models,node_xyce_models,node_veriloga,node_xschem,node_qucs toneMint
class node_stdcell,node_io_library,node_sram,node_librelane,node_itf toneRose
class node_readme,node_makefile,node_measurements,node_qa_gds,node_drc_ci,node_lvs_ci toneIndigo
```

## Components

### Layout authoring

- [KLayout technology](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/sg13g2.lyt): layout technology · Layer mappings and KLayout technology definition. · `ihp-sg13g2/libs.tech/klayout/tech/sg13g2.lyt`
- [Python PCells](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/python/sg13g2_pycell_lib/sg13_tech.py): parametric devices · Generates layout geometry for process devices and passives. · `ihp-sg13g2/libs.tech/klayout/python/sg13g2_pycell_lib/sg13_tech.py`
- [Netlist import](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/python/import_netlist/import_netlist.py): KLayout adapter · `ihp-sg13g2/libs.tech/klayout/python/import_netlist/import_netlist.py`
- **Editable layout**: GDS/OAS design
- [Magic technology](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/magic/ihp-sg13g2.tech): alternate layout flow · Technology, DRC, extraction, and layout-generation support. · `ihp-sg13g2/libs.tech/magic/ihp-sg13g2.tech`

### Physical verification

- [KLayout DRC deck](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/drc/ihp-sg13g2.drc): physical rules · Composes process FEOL, BEOL, and device rules. · `ihp-sg13g2/libs.tech/klayout/tech/drc/ihp-sg13g2.drc`
- [KLayout LVS deck](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/lvs/sg13g2.lvs): connectivity rules · `ihp-sg13g2/libs.tech/klayout/tech/lvs/sg13g2.lvs`
- [LVS batch runner](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/klayout/tech/lvs/run_lvs.py): execution script · `ihp-sg13g2/libs.tech/klayout/tech/lvs/run_lvs.py`
- **Schematic netlist**: comparison input
- [Netgen setup](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/netgen/ihp-sg13g2_setup.tcl): alternate LVS · `ihp-sg13g2/libs.tech/netgen/ihp-sg13g2_setup.tcl`

### Simulation integration

- [ngspice models](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/ngspice/models): compact model library · Corner-selected device and statistical models. · `ihp-sg13g2/libs.tech/ngspice/models`
- [Xyce models](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/xyce/models): compact model library · `ihp-sg13g2/libs.tech/xyce/models`
- [Verilog-A models](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/verilog-a): behavioral sources · `ihp-sg13g2/libs.tech/verilog-a`
- [Xschem integration](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/xschem/sg13g2_pr): schematic adapter · Symbols, testbenches, sweeps, and Monte Carlo helpers. · `ihp-sg13g2/libs.tech/xschem/sg13g2_pr`
- [Qucs-S library](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/qucs-s/user_lib): schematic adapter · `ihp-sg13g2/libs.tech/qucs-s/user_lib`

### Reference IP & digital flow

- [Standard-cell library](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.ref/sg13g2_stdcell): reference IP · Correlated physical, logical, timing, and circuit views. · `ihp-sg13g2/libs.ref/sg13g2_stdcell`
- [I/O library](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.ref/sg13g2_io): reference IP · `ihp-sg13g2/libs.ref/sg13g2_io`
- [SRAM library](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.ref/sg13g2_sram): reference IP · `ihp-sg13g2/libs.ref/sg13g2_sram`
- [LibreLane adapter](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/librelane/config.tcl): digital-flow config · `ihp-sg13g2/libs.tech/librelane/config.tcl`
- [Parasitic ITF](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.tech/parasitics/itf/sg13g2_typ.itf): extraction input · `ihp-sg13g2/libs.tech/parasitics/itf/sg13g2_typ.itf`

### Validation & delivery

- [PDK documentation](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/README.md): entry point · Installation and supported-tool guidance. · `README.md`
- [Build entry point](https://github.com/ihp-gmbh/ihp-open-pdk/tree/main/Makefile): automation · `Makefile`
- [Measured characterization](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.doc/meas): device evidence · MOS, HBT, and PNP measurements and reports. · `ihp-sg13g2/libs.doc/meas`
- [DRC QA fixtures](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/ihp-sg13g2/libs.qa/drc): regression layouts · `ihp-sg13g2/libs.qa/drc`
- [DRC regression CI](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/.github/workflows/drc_regression.yml): GitHub Actions · `.github/workflows/drc_regression.yml`
- [LVS regression CI](https://github.com/ihp-gmbh/ihp-open-pdk/blob/main/.github/workflows/lvs_regression.yml): GitHub Actions · `.github/workflows/lvs_regression.yml`

## Connections

- PDK documentation → Build entry point: guides
- KLayout technology → Python PCells: parameters
- KLayout technology → Netlist import: defines layers
- Python PCells → Editable layout: generates
- Netlist import → Editable layout: creates
- KLayout technology → KLayout DRC deck: shared semantics
- KLayout technology → KLayout LVS deck: shared semantics
- Editable layout → KLayout DRC deck: checked by
- KLayout DRC deck → KLayout LVS deck: clean layout proceeds to
- Editable layout → KLayout LVS deck: extracts from
- Schematic netlist → KLayout LVS deck: compared against
- LVS batch runner → KLayout LVS deck: runs
- Xschem integration → Schematic netlist: produces
- Qucs-S library → Schematic netlist: produces
- Xschem integration → ngspice models: simulates with
- Qucs-S library → ngspice models: simulates with
- Xschem integration → Xyce models: simulates with
- ngspice models → Verilog-A models: extended by
- Xyce models → Verilog-A models: extended by
- Measured characterization → ngspice models: characterizes
- Measured characterization → Xyce models: characterizes
- Standard-cell library → LibreLane adapter: implementation views
- I/O library → LibreLane adapter: implementation views
- SRAM library → LibreLane adapter: implementation views
- Parasitic ITF → LibreLane adapter: parasitic input
- Magic technology → KLayout DRC deck: aligned rules
- Netgen setup → KLayout LVS deck: aligned comparison
- DRC QA fixtures → DRC regression CI: test layouts
- DRC regression CI → KLayout DRC deck: regresses
- LVS regression CI → LVS batch runner: regresses
