From 27166c75f08cf633d4fe039668bc823677e2e584 Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 3 Jul 2020 07:00:56 -0700 Subject: [PATCH] Don't remove temp files during regular openram runs. --- compiler/base/hierarchy_design.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/compiler/base/hierarchy_design.py b/compiler/base/hierarchy_design.py index b0370179..001093dd 100644 --- a/compiler/base/hierarchy_design.py +++ b/compiler/base/hierarchy_design.py @@ -85,8 +85,9 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout): "LVS failed for {0} with {1} errors(s)".format(self.name, num_lvs_errors)) - os.remove(tempspice) - os.remove(tempgds) + if OPTS.purge_temp: + os.remove(tempspice) + os.remove(tempgds) return (num_drc_errors, num_lvs_errors) else: @@ -111,7 +112,8 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout): "DRC failed for {0} with {1} error(s)".format(self.name, num_errors)) - os.remove(tempgds) + if OPTS.purge_temp: + os.remove(tempgds) return num_errors else: @@ -137,8 +139,9 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout): debug.check(num_errors == 0, "LVS failed for {0} with {1} error(s)".format(self.name, num_errors)) - os.remove(tempspice) - os.remove(tempgds) + if OPTS.purge_temp: + os.remove(tempspice) + os.remove(tempgds) return num_errors else: