Skip to content

Commit deccf36

Browse files
committed
Update regex for synth__design__instance__count__stdcell
Yosys changed their output format Signed-off-by: Matt Liberty <[email protected]>
1 parent 33e29bf commit deccf36

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)