示例#1
0
 def add_inst(self, name, mod, offset=[0, 0], mirror="R0", rotate=0):
     """Adds an instance of a mod to this module"""
     self.insts.append(geometry.instance(name, mod, offset, mirror, rotate))
     message = []
     for x in self.insts:
         message.append(x.name)
     debug.info(4, "adding instance" + ",".join(message))
示例#2
0
 def add_inst(self, name, mod, offset=[0,0], mirror="R0",rotate=0):
     """Adds an instance of a mod to this module"""
     self.insts.append(geometry.instance(name, mod, offset, mirror, rotate))
     debug.info(3, "adding instance {}".format(self.insts[-1]))
     # This is commented out for runtime reasons
     #debug.info(4, "instance list: " + ",".join(x.name for x in self.insts))
     return self.insts[-1]