DRCResults

class photonforge.verification.DRCResults(violations_by_category, log='', exit_code=0, cells=<factory>, top_cell=None)[source]

Results of a DRC run, from any engine.

Methods

in_top_cell(marker)

The marker with its coordinates moved into the top cell through the example placement of its cell.

placement(cell)

Placement of a cell in the top cell, composed from the first reference of each cell on the way up, as KLayout's marker browser does.

Attributes

categories

exit_code

is_clean

log

top_cell

violated_cells

violation_counts

violations_by_cell

violations_by_category

cells

Parameters:
  • violations_by_category (dict[str, DRCViolation])

  • log (str)

  • exit_code (int)

  • cells (dict[str, DRCCell])

  • top_cell (str | None)

in_top_cell(marker)[source]

The marker with its coordinates moved into the top cell through the example placement of its cell. A cell placed several times is reported once, so the marker lands at that example placement only.

Parameters:

marker (DRCMarker)

Return type:

DRCMarker

placement(cell)[source]

Placement of a cell in the top cell, composed from the first reference of each cell on the way up, as KLayout’s marker browser does. Both engines place each cell directly in the top cell.

Parameters:

cell (str)

Return type:

Placement