API Verification

API Verification#

Klayout DRC#

klayout drc

write_drc_deck_macro(rules[, layers, name, ...])

Write KLayout DRC macro.

check_width(value, layer[, angle_limit])

Min feature size.

check_space(value, layer[, angle_limit])

Min Space between shapes of layer.

check_separation(value, layer1, layer2)

Min space between different layers.

check_enclosing(value, layer1, layer2[, ...])

Checks if layer1 encloses (is bigger than) layer2 by value.

check_area(layer[, min_area_um2])

Return script for min area checking.

check_density([layer, layer_floorplan, ...])

Return script to ensure density of layer is within min and max.

check_not_inside(layer, not_inside[, size])

Checks for that a layer is not inside another layer.

Klayout dataprep#

klayout dataprep

RegionCollection(gdspath[, cell_name])

A RegionCollection can load a GDS file and make layer operations on it.