kqcircuits.util.label¶
- class kqcircuits.util.label.LabelOrigin(value)[source]¶
Bases:
enum.Enum
Origin of the Text PCell. One of the four corners of the cell bounding box
- BOTTOMLEFT = 1¶
- BOTTOMRIGHT = 2¶
- TOPLEFT = 3¶
- TOPRIGHT = 4¶
- kqcircuits.util.label.produce_label(cell, label, location, origin, origin_offset, margin, layers, layer_protection, size=350, mirror=False)[source]¶
Produces a Text PCell accounting for desired relative position of the text respect to the given location and the spacing.
- Parameters
cell – container cell for the label PCell
label – text of the label
location – DPoint for the location of the text
origin – LabelOrigin at which the text is located
origin_offset – extra spacing from the location
margin – margin of the ground grid avoidance layer around the text
layers – list of layers where the label text is added
layer_protection – layer where a box around the label text is added
size – Character height in um, default 350
- Effect:
Shapes added to the corresponding layers
