proper tiling

This commit is contained in:
Jesse Cirimelli-Low
2023-07-26 18:05:36 -07:00
parent 4baec81f82
commit 8a4b34dee1
3 changed files with 20 additions and 6 deletions
+6 -2
View File
@@ -9,6 +9,7 @@ import sys
import os
import re
from math import sqrt
from copy import deepcopy
from openram import debug
from openram.gdsMill import gdsMill
from openram import tech
@@ -476,9 +477,12 @@ class layout():
# debug.info(4, "instance list: " + ",".join(x.name for x in self.insts))
return self.insts[-1]
def add_existing_inst(self, inst):
def add_existing_inst(self, inst, name):
inst = deepcopy(inst)
self.mods.add(inst.mod)
self.inst_names.add(self.name)
if name:
inst.name = name
self.inst_names.add(inst.name)
self.insts.append(inst)
debug.info(3, "adding existing instance{}".format(self.insts[-1]))
return self.insts[-1]