Skip to content

Commit

Permalink
make_pin: option for layer name
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Jul 3, 2024
1 parent dab83d9 commit 53bb742
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions klayout_dot_config/python/SiEPIC/utils/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,17 +1032,19 @@ def make_pin(cell, name, center, w, layer, direction, debug=False):
name: text label for the pin
center: location, int [x,y]
w: pin width
layer: layout.layer() type
layer: layout.layer() integer type, or string
direction =
0: right
90: up
180: left
270: down
Units: input can be float for microns, or int for nm
Units: input can be float for microns, or int for database units (typ. nm)
'''


if type(layer) == str:
layer = cell.layout().layer(cell.layout().TECHNOLOGY[layer])

from SiEPIC.extend import to_itype
from pya import Point, DPoint
import numpy
Expand Down

0 comments on commit 53bb742

Please sign in to comment.