From c67d54ee5422482e0381883e318bfdf0ad89af33 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Tue, 9 Sep 2025 16:11:19 +0300 Subject: [PATCH] fix(tt_tool): routing stats broken for LibreLane 3.x --- project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project.py b/project.py index cfd29af..3e2d79f 100644 --- a/project.py +++ b/project.py @@ -889,9 +889,9 @@ class Project: def print_stats(self): util_glob = "runs/wokwi/*-openroad-globalplacement/openroad-globalplacement.log" util_log = glob.glob(os.path.join(self.local_dir, util_glob))[0] - util_label = "[INFO GPL-0019] Util:" - util_line = next(line for line in open(util_log) if line.startswith(util_label)) - util = util_line.removeprefix(util_label).strip() + util_regexp = r"^\[INFO GPL-0019\] (Util|Utilization):" + util_line = next(line for line in open(util_log) if re.match(util_regexp, line)) + util = re.sub(util_regexp, "", util_line).strip() try: wire_length = self.metrics["route__wirelength"] # OpenROAD #2047