From b84b4dab43414f51ca21d2a39124a310a2dd6d85 Mon Sep 17 00:00:00 2001 From: mrg Date: Mon, 23 May 2022 16:28:28 -0700 Subject: [PATCH] Fail on pin mismatch too. --- compiler/verify/magic.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compiler/verify/magic.py b/compiler/verify/magic.py index 69429ab7..efa400c1 100644 --- a/compiler/verify/magic.py +++ b/compiler/verify/magic.py @@ -349,6 +349,14 @@ def run_lvs(cell_name, gds_name, sp_name, final_verification=False, output_path= test = re.compile("match correctly.") correctly = list(filter(test.search, final_results)) + # Top level pins mismatch + test = re.compile("The top level cell failed pin matching.") + pins_incorrectly = list(filter(test.search, final_results)) + + # Fail if the pins mismatched + if len(pins_incorrectly) > 0: + total_errors += 1 + # Fail if they don't match. Something went wrong! if len(uniquely) == 0 and len(correctly) == 0: total_errors += 1