diff --git a/flow/scripts/synth.tcl b/flow/scripts/synth.tcl index 8554f6d61c..6d444a7174 100644 --- a/flow/scripts/synth.tcl +++ b/flow/scripts/synth.tcl @@ -226,7 +226,7 @@ if { $::env(SYNTH_INSBUF) } { # Reports tee -o $::env(REPORTS_DIR)/synth_check.txt check -tee -o $::env(REPORTS_DIR)/synth_stat.txt stat {*}$lib_args +tee -o $::env(REPORTS_DIR)/synth_stat.txt stat -hierarchy {*}$lib_args # check the design is composed exclusively of target cells, and # check for other problems diff --git a/flow/util/genMetrics.py b/flow/util/genMetrics.py index 536bfeb4fb..937b2fb0f7 100755 --- a/flow/util/genMetrics.py +++ b/flow/util/genMetrics.py @@ -228,11 +228,12 @@ def extract_metrics( # Synthesis # ========================================================================= - # The new format (>= 0.57) is: cells + # The new format (>= 0.57) with -hierarchy is: + # cells extractTagFromFile( "synth__design__instance__count__stdcell", metrics_dict, - "^\\s+(\\d+)\\s+[-0-9.]+\\s+cells$", + "^\\s+(\\d+)\\s+[-0-9.]+\\s+\\S+\\s+\\S+\\s+cells$", rptPath + "/synth_stat.txt", )