Don't remove temp files during regular openram runs.

This commit is contained in:
mrg 2020-07-03 07:00:56 -07:00
parent 5dde466ab9
commit 27166c75f0
1 changed files with 8 additions and 5 deletions

View File

@ -85,6 +85,7 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout):
"LVS failed for {0} with {1} errors(s)".format(self.name, "LVS failed for {0} with {1} errors(s)".format(self.name,
num_lvs_errors)) num_lvs_errors))
if OPTS.purge_temp:
os.remove(tempspice) os.remove(tempspice)
os.remove(tempgds) os.remove(tempgds)
@ -111,6 +112,7 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout):
"DRC failed for {0} with {1} error(s)".format(self.name, "DRC failed for {0} with {1} error(s)".format(self.name,
num_errors)) num_errors))
if OPTS.purge_temp:
os.remove(tempgds) os.remove(tempgds)
return num_errors return num_errors
@ -137,6 +139,7 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout):
debug.check(num_errors == 0, debug.check(num_errors == 0,
"LVS failed for {0} with {1} error(s)".format(self.name, "LVS failed for {0} with {1} error(s)".format(self.name,
num_errors)) num_errors))
if OPTS.purge_temp:
os.remove(tempspice) os.remove(tempspice)
os.remove(tempgds) os.remove(tempgds)