kqcircuits.util.static_chip_helper
Utility function library for processing static geometry of chip
- kqcircuits.util.static_chip_helper.clear_layer(cell: Cell, layer_info: LayerInfo)[source]
Clear chip geometry from
cellat givenlayer_infoModifies value of
cellafter this operation.
- kqcircuits.util.static_chip_helper.strip_faces(cell: Cell, faces_to_preserve: list[str])[source]
Strip geometries from all faces on the
cellexcept for faces listed infaces_to_preserveModifies value of
cellafter this operation.
- kqcircuits.util.static_chip_helper.get_chip_boundary_box(cell: Cell, face_ids: list[str]) DBox[source]
Returns the bounding box encompassing base metal gap shapes in
cellover all givenface_ids.
- kqcircuits.util.static_chip_helper.copy_chip_cell_from_face(chip_cell: Cell, cell_copy_name: str, from_face: str) Cell[source]
Takes
chip_cell, copies a cell to same layout, then strips away all faces except from face id value passed asfrom_face. New cell has name set ascell_copy_name.
- kqcircuits.util.static_chip_helper.swap_face(cell: Cell, from_face: str, to_face: str)[source]
Swap all layers in
cellsuch that geometry in layer atfrom_faceface id gets placed to layer of same name atto_faceface id. Iffrom_faceface id has a layer thatto_facedoesn’t have, will clear such layer.Modifies value of
cellafter this operation.