drc_klayout
Run DRC checks on a GDS file using KLayout, with a generic width/space smoke deck by default or a custom PDK deck when specified.
Instructions
Runs KLayout batch DRC on a GDS file. Default is a generated generic width/space smoke deck over the layout's own layers (geometry sanity, not foundry signoff). Pass deck_file for a real PDK rule deck. Does not do LVS; use lvs_netgen for netlist comparison.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gds_file": "<gds_file>"
},
"name": "drc_klayout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| gds_file | Yes | GDSII layout file to check. | |
| space_um | No | Generic-deck min space in um (default: 0.09). | |
| width_um | No | Generic-deck min width in um (default: 0.06). | |
| deck_file | No | Optional custom KLayout .drc rule deck (batch-mode with source()/report()). |