From ff0a7851b79cc5297ccfb2c89376019f0c4025fe Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Tue, 13 Nov 2018 17:41:32 -0800 Subject: [PATCH] Fix error when DRC is disabled so it doesn't initialize. --- compiler/base/hierarchy_design.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/base/hierarchy_design.py b/compiler/base/hierarchy_design.py index 8512fcac..5948d066 100644 --- a/compiler/base/hierarchy_design.py +++ b/compiler/base/hierarchy_design.py @@ -69,7 +69,7 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout): """Checks both DRC and LVS for a module""" # Unit tests will check themselves. # Do not run if disabled in options. - if (not OPTS.is_unit_test and OPTS.check_lvsdrc and OPTS.inline_lvsdrc) or final_verification: + if (not OPTS.is_unit_test and OPTS.check_lvsdrc and (OPTS.inline_lvsdrc or final_verification)): tempspice = OPTS.openram_temp + "/temp.sp" tempgds = OPTS.openram_temp + "/temp.gds" self.sp_write(tempspice) @@ -83,7 +83,7 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout): """Checks DRC for a module""" # Unit tests will check themselves. # Do not run if disabled in options. - if (not OPTS.is_unit_test and OPTS.check_lvsdrc and OPTS.inline_lvsdrc) or final_verification: + if (not OPTS.is_unit_test and OPTS.check_lvsdrc and (OPTS.inline_lvsdrc or final_verification)): tempgds = OPTS.openram_temp + "/temp.gds" self.gds_write(tempgds) debug.check(verify.run_drc(self.name, tempgds, final_verification) == 0,"DRC failed for {0}".format(self.name)) @@ -93,7 +93,7 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout): """Checks LVS for a module""" # Unit tests will check themselves. # Do not run if disabled in options. - if (not OPTS.is_unit_test and OPTS.check_lvsdrc and OPTS.inline_lvsdrc) or final_verification: + if (not OPTS.is_unit_test and OPTS.check_lvsdrc and (OPTS.inline_lvsdrc or final_verification)): tempspice = OPTS.openram_temp + "/temp.sp" tempgds = OPTS.openram_temp + "/temp.gds" self.sp_write(tempspice)