Skip to content

Commit 4b6c29c

Browse files
authored
Merge pull request The-OpenROAD-Project#3478 from The-OpenROAD-Project-staging/genMetrics-format-change
Update regex for synth__design__instance__count__stdcell
2 parents 44ad745 + deccf36 commit 4b6c29c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flow/util/genMetrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,11 @@ def extract_metrics(
231231
# Synthesis
232232
# =========================================================================
233233

234+
# The new format (>= 0.57) is: <count> <area> cells
234235
extractTagFromFile(
235236
"synth__design__instance__count__stdcell",
236237
metrics_dict,
237-
"Number of cells: +(\\S+)",
238+
"^\\s+(\\d+)\\s+[-0-9.]+\\s+cells$",
238239
rptPath + "/synth_stat.txt",
239240
)
240241

0 commit comments

Comments
 (0)