From 4997a2051174d5680e1f6919df45c52ac0b26a7b Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 16 Nov 2018 13:37:17 -0800 Subject: [PATCH] Must set library cell flag for netlist only mode as well --- compiler/base/hierarchy_layout.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/base/hierarchy_layout.py b/compiler/base/hierarchy_layout.py index 229bb0f8..07d4f611 100644 --- a/compiler/base/hierarchy_layout.py +++ b/compiler/base/hierarchy_layout.py @@ -447,6 +447,11 @@ class layout(lef.lef): def gds_read(self): """Reads a GDSII file in the library and checks if it exists 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: self.gds = None return @@ -454,7 +459,6 @@ class layout(lef.lef): # open the gds file if it exists or else create a blank layout if os.path.isfile(self.gds_file): debug.info(3, "opening {}".format(self.gds_file)) - self.is_library_cell=True self.gds = gdsMill.VlsiLayout(units=GDS["unit"]) reader = gdsMill.Gds2reader(self.gds) reader.loadFromFile(self.gds_file)