Skip to content

Commit 4561e85

Browse files
committed
Adjust regex for synth__design__instance__count__stdcell for -hierarchical
Signed-off-by: Matt Liberty <[email protected]>
1 parent 658cd90 commit 4561e85

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

flow/util/genMetrics.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,12 @@ def extract_metrics(
228228
# Synthesis
229229
# =========================================================================
230230

231-
# The new format (>= 0.57) is: <count> <area> cells
231+
# The new format (>= 0.57) with -hierarchy is:
232+
# <count> <area> <local_count> <local_area> cells
232233
extractTagFromFile(
233234
"synth__design__instance__count__stdcell",
234235
metrics_dict,
235-
"^\\s+(\\d+)\\s+[-0-9.]+\\s+cells$",
236+
"^\\s+(\\d+)\\s+[-0-9.]+\\s+\\S+\\s+\\S+\\s+cells$",
236237
rptPath + "/synth_stat.txt",
237238
)
238239

0 commit comments

Comments
 (0)