DrcResult

Result of running DRC.

Returned by run_drc(). Contains a list of violations and summary statistics about the check. Use the passed attribute for a quick pass/fail check.

result = run_drc(cell, rules)
if result.passed:
    print(f"DRC passed ({result.polygons_checked} polygons, {result.rules_checked} rules)")
else:
    print(f"DRC failed with {len(result.violations)} violations")
    for v in result.violations:
        print(f"  {v.message}")

Attributes

attributeviolationslist[DrcViolation]

List of all DRC violations found.

attributepassedbool

True if no violations were found.

attributepolygons_checkedint

Number of polygons checked during the DRC run.

attributerules_checkedint

Number of rules evaluated.

attributeelapsed_msfloat

Elapsed time in milliseconds.

On this page