mirror of https://github.com/VLSIDA/OpenRAM.git
Must set library cell flag for netlist only mode as well
This commit is contained in:
parent
ca750b698a
commit
4997a20511
|
|
@ -447,6 +447,11 @@ class layout(lef.lef):
|
||||||
def gds_read(self):
|
def gds_read(self):
|
||||||
"""Reads a GDSII file in the library and checks if it exists
|
"""Reads a GDSII file in the library and checks if it exists
|
||||||
Otherwise, start a new layout for dynamic generation."""
|
Otherwise, start a new layout for dynamic generation."""
|
||||||
|
|
||||||
|
# This must be done for netlist only mode too
|
||||||
|
if os.path.isfile(self.gds_file):
|
||||||
|
self.is_library_cell=True
|
||||||
|
|
||||||
if OPTS.netlist_only:
|
if OPTS.netlist_only:
|
||||||
self.gds = None
|
self.gds = None
|
||||||
return
|
return
|
||||||
|
|
@ -454,7 +459,6 @@ class layout(lef.lef):
|
||||||
# open the gds file if it exists or else create a blank layout
|
# open the gds file if it exists or else create a blank layout
|
||||||
if os.path.isfile(self.gds_file):
|
if os.path.isfile(self.gds_file):
|
||||||
debug.info(3, "opening {}".format(self.gds_file))
|
debug.info(3, "opening {}".format(self.gds_file))
|
||||||
self.is_library_cell=True
|
|
||||||
self.gds = gdsMill.VlsiLayout(units=GDS["unit"])
|
self.gds = gdsMill.VlsiLayout(units=GDS["unit"])
|
||||||
reader = gdsMill.Gds2reader(self.gds)
|
reader = gdsMill.Gds2reader(self.gds)
|
||||||
reader.loadFromFile(self.gds_file)
|
reader.loadFromFile(self.gds_file)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue