DrcPolicy
Explicit per-run DRC suppression policy keyed by cell name.
Import with from rosette.drc import DrcPolicy and pass the policy to
run_drc(..., policy=policy). Policies are
separate from Cell geometry and hierarchy.
from rosette import BBox, Point
from rosette.drc import DrcPolicy, run_drc
policy = DrcPolicy()
policy.skip_cell("trusted_pdk_cell")
policy.waive_region("taper", BBox(Point(9, -1), Point(11, 1)))
result = run_drc(cell, rules, policy=policy)Methods
func__init__() -> NoneCreate an empty DRC policy.
Returns
Nonefuncskip_cell(cell_name) -> NoneSuppress violations attributed entirely to the named cell or its reachable subtree. Violations involving an unskipped cell remain visible.
paramcell_namestrName of the cell whose subtree should be skipped.
Returns
Nonefuncwaive_region(cell_name, region) -> NoneAdd a region waiver in the named cell's local coordinate system. A violation is waived only when its location is fully contained by the region after the region is transformed for that cell placement.
paramcell_namestrName of the cell that owns the local waiver region.
paramregionBBoxFinite bounding box with ordered corners.
Returns
Nonefuncskips(cell_name) -> boolReturn whether the named cell was explicitly passed to skip_cell. This does
not report cells included only because they are descendants of a skipped cell.
paramcell_namestrCell name to query.
Returns
boolfuncwaiver_regions(cell_name) -> list[BBox]Return a copy of the local waiver regions registered for the named cell.
paramcell_namestrCell name to query.
Returns
list[BBox]