drc_check
Run design rule checks on layouts by specifying spacing, width, overlap, separation, and enclosure rules to report violations.
Instructions
Run simple DRC rules against a layout and report violations.
Operates on path if given, else the current session. Each rule is a dict
(datatype defaults to 0, distances in micrometers):
{"type": "spacing", "layer": L, "datatype": D, "min": um} {"type": "width", "layer": L, "datatype": D, "min": um} {"type": "overlap", "layer": L, "datatype": D, "layer2": L2, "datatype2": D2} {"type": "separation", "layer": L, "datatype": D, "layer2": L2, "datatype2": D2, "min": um} {"type": "enclosure", "layer": L, "datatype": D, "layer2": L2, "datatype2": D2, "min": um}
"spacing" is min space within a layer; "width" is min feature width;
"overlap" flags any intersection between two layers (forbidden overlap);
"separation" is min space between two layers; "enclosure" requires layer2 to
surround layer by min. Up to max_report violation centres are listed per rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| rules | Yes | ||
| top_cell | No | ||
| max_report | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |