export_cell_terms

ipkiss3.all.canvas.export_cell_terms(cell, term_position_map=None, from_layout=True, width=None, height=None)

Export the terms for a cell into schematic JSON datastructure

Parameters:
cell: i3.PCell

The cell to extract for, used if term_list is None

term_position_map: Dict[str, Coord2]

Alternatively, a mapping of term_name=>position, used instead of extraction. The position should be normalized to a [-1, 1] x [-1, 1] box, where [-1, -1] and [1, 1] correspond to the south-west and north-east corner, respectively.

from_layout: bool

Extract from layout instead of from the netlist (only if term_position_map is None)

width: float or None

Width of a symbol. When None, use a heuristic to determine the width based on the amount of terms.

height: float or None

Height of a symbol. When None, use a heuristic to determine the width based on the amount of terms.