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 cell at given layer_info

Modifies value of cell after this operation.

kqcircuits.util.static_chip_helper.strip_faces(cell: Cell, faces_to_preserve: list[str])[source]

Strip geometries from all faces on the cell except for faces listed in faces_to_preserve

Modifies value of cell after 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 cell over all given face_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 as from_face. New cell has name set as cell_copy_name.

kqcircuits.util.static_chip_helper.swap_face(cell: Cell, from_face: str, to_face: str)[source]

Swap all layers in cell such that geometry in layer at from_face face id gets placed to layer of same name at to_face face id. If from_face face id has a layer that to_face doesn’t have, will clear such layer.

Modifies value of cell after this operation.

../_images/kqcircuits.util.static_chip_helper.png