From d5153c3f224efb1e6c4f879135fb52f07fb35d7a Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sat, 13 Apr 2024 20:31:27 +0200 Subject: [PATCH] fix(tt_tool): clock issue warnings break with custom openlane configs they break when some of the steps are disabled, e.g. https://github.com/iic-jku/jku-tt06-tdc-v2/ --- project.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/project.py b/project.py index 7fe2115..da7c713 100644 --- a/project.py +++ b/project.py @@ -705,16 +705,15 @@ class Project: if "WIDTHLABEL" not in line: warnings.append(line.strip()) - sta_report = ( - "runs/wokwi/reports/signoff/30-sta-rcx_nom/multi_corner_sta.checks.rpt" + sta_report_glob = ( + "runs/wokwi/reports/signoff/*-sta-rcx_nom/multi_corner_sta.checks.rpt" ) + if self.args.openlane2: - sta_report = glob.glob( - os.path.join( - self.local_dir, - "runs/wokwi/*-openroad-stapostpnr/nom_tt_025C_1v80/checks.rpt", - ) - )[0] + sta_report_glob = ( + "runs/wokwi/*-openroad-stapostpnr/nom_tt_025C_1v80/checks.rpt" + ) + sta_report = glob.glob(os.path.join(self.local_dir, sta_report_glob))[0] with open(os.path.join(self.local_dir, sta_report)) as f: for line in f.readlines(): if line.startswith("Warning:") and "clock" in line: