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)