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/
This commit is contained in:
Uri Shaked
2024-04-13 20:31:27 +02:00
parent f910ae51f9
commit d5153c3f22
+6 -7
View File
@@ -705,16 +705,15 @@ class Project:
if "WIDTHLABEL" not in line: if "WIDTHLABEL" not in line:
warnings.append(line.strip()) warnings.append(line.strip())
sta_report = ( sta_report_glob = (
"runs/wokwi/reports/signoff/30-sta-rcx_nom/multi_corner_sta.checks.rpt" "runs/wokwi/reports/signoff/*-sta-rcx_nom/multi_corner_sta.checks.rpt"
) )
if self.args.openlane2: if self.args.openlane2:
sta_report = glob.glob( sta_report_glob = (
os.path.join( "runs/wokwi/*-openroad-stapostpnr/nom_tt_025C_1v80/checks.rpt"
self.local_dir,
"runs/wokwi/*-openroad-stapostpnr/nom_tt_025C_1v80/checks.rpt",
) )
)[0] 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: with open(os.path.join(self.local_dir, sta_report)) as f:
for line in f.readlines(): for line in f.readlines():
if line.startswith("Warning:") and "clock" in line: if line.startswith("Warning:") and "clock" in line: