From 0a87691176ddd61679535dac5d7a7c324192f86c Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 30 Jun 2020 15:27:10 -0700 Subject: [PATCH] Run Calibre LVS even if DRC fails. --- compiler/tests/testutils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/tests/testutils.py b/compiler/tests/testutils.py index eb75fc44..4a58cfe2 100644 --- a/compiler/tests/testutils.py +++ b/compiler/tests/testutils.py @@ -48,12 +48,11 @@ class openram_test(unittest.TestCase): # if we ignore things like minimum metal area of pins drc_result=verify.run_drc(a.name, tempgds, extract=True, final_verification=final_verification) - # Always run LVS if we are using magic - if "magic" in OPTS.drc_exe or drc_result == 0: - lvs_result=verify.run_lvs(a.name, tempgds, tempspice, final_verification=final_verification) + # We can still run LVS even if DRC fails in Magic OR Calibre + lvs_result=verify.run_lvs(a.name, tempgds, tempspice, final_verification=final_verification) # Only allow DRC to fail and LVS to pass if we are using magic - if "magic" in OPTS.drc_exe and lvs_result == 0 and drc_result != 0: + if lvs_result == 0 and drc_result != 0: # import shutil # zip_file = "/tmp/{0}_{1}".format(a.name, os.getpid()) # debug.info(0, "Archiving failed files to {}.zip".format(zip_file))