def make_layout(self,frame,label,labelloc,labelwidth):
"""
Generate chip with dimensions xdim,ydim
"""
box=cad.shapes.Box((-self.xdim/2, -self.ydim/2), (self.xdim/2, self.ydim/2),
width=self.boxwidth, layer =self.layer_box)
date = time.strftime("%d/%m/%Y")
# The label is added 100 um on top of the main cell
label_grid_chip = cad.shapes.LineLabel( self.name + " " +\
date,self.boxwidth,
position=labelloc,
line_width=labelwidth,
layer=self.layer_label)
if frame==True:
self.add(box)
if label==True:
self.add(label_grid_chip)
评论列表
文章目录