Add technology parameter for library prefix during uniquification of GDS

This commit is contained in:
mrg
2021-07-12 11:01:51 -07:00
parent bd64912977
commit cce1305da3
5 changed files with 26 additions and 32 deletions
+6 -1
View File
@@ -69,7 +69,12 @@ class sram():
reader = gdsMill.Gds2reader(gds)
reader.loadFromFile(name)
gds.uniquify()
# Uniquify but skip the library cells since they are hard coded
try:
from tech import library_prefix_name
except ImportError:
library_prefix_name = None
gds.uniquify(library_prefix_name)
writer = gdsMill.Gds2writer(gds)
unique_name = name.replace(".gds", "_unique.gds")