diff --git a/compiler/base/hierarchy_design.py b/compiler/base/hierarchy_design.py index 75f50f9f..1dc052e3 100644 --- a/compiler/base/hierarchy_design.py +++ b/compiler/base/hierarchy_design.py @@ -95,7 +95,7 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout): if (not OPTS.is_unit_test and OPTS.check_lvsdrc and (OPTS.inline_lvsdrc or final_verification)): global total_drc_errors - tempgds = OPTS.openram_temp + "/temp.gds" + tempgds = "{0}/{1}.gds".format(OPTS.openram_temp,self.name) self.gds_write(tempgds) num_errors = verify.run_drc(self.name, tempgds, final_verification) total_drc_errors += num_errors @@ -110,8 +110,8 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout): if (not OPTS.is_unit_test and OPTS.check_lvsdrc and (OPTS.inline_lvsdrc or final_verification)): global total_lvs_errors - tempspice = OPTS.openram_temp + "/temp.sp" - tempgds = OPTS.openram_temp + "/temp.gds" + tempspice = "{0}/{1}.sp".format(OPTS.openram_temp,self.name) + tempgds = "{0}/{1}.gds".format(OPTS.openram_temp,self.name) self.sp_write(tempspice) self.gds_write(tempgds) num_errors = verify.run_lvs(self.name, tempgds, tempspice, final_verification) diff --git a/compiler/verify/magic.py b/compiler/verify/magic.py index 5b4e8e3f..6fe1edf0 100644 --- a/compiler/verify/magic.py +++ b/compiler/verify/magic.py @@ -58,9 +58,8 @@ def write_magic_script(cell_name, gds_name, extract=False, final_verification=Fa else: pre = "" if final_verification: - f.write(pre+"extract unique\n".format(cell_name)) - else: - f.write(pre+"extract\n".format(cell_name)) + f.write(pre+"extract unique all\n".format(cell_name)) + f.write(pre+"extract\n".format(cell_name)) #f.write(pre+"ext2spice hierarchy on\n") #f.write(pre+"ext2spice scale off\n") # lvs exists in 8.2.79, but be backword compatible for now