From 5c1dd2d62106885270a788d2f240f75d66d8d2b0 Mon Sep 17 00:00:00 2001 From: Peter Gadfort Date: Sat, 26 Oct 2024 20:04:50 -0400 Subject: [PATCH] ord: add site and row information to report_design_area_metrics Signed-off-by: Peter Gadfort --- src/Metrics.tcl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/Metrics.tcl b/src/Metrics.tcl index 0de6e560287..d791afae590 100644 --- a/src/Metrics.tcl +++ b/src/Metrics.tcl @@ -239,6 +239,22 @@ proc report_design_area_metrics { args } { set stdcell_util -1.0 } + set std_rows 0 + set std_sites 0 + set rows [dict create] + set sites [dict create] + foreach row [$block getRows] { + set site [$row getSite] + + if { [$site getClass] == "NONE" || [$site getClass] == "CORE" } { + incr std_rows + set std_sites [expr { $std_sites + [$row getSiteCount] }] + } + + dict incr rows [$site getName] 1 + dict incr sites [$site getName] [$row getSiteCount] + } + utl::metric_int "design__io" $num_ios utl::metric_float "design__die__area" $die_area utl::metric_float "design__core__area" $core_area @@ -250,6 +266,16 @@ proc report_design_area_metrics { args } { utl::metric_float "design__instance__area__macros" $macro_area utl::metric_float "design__instance__utilization" $core_util utl::metric_float "design__instance__utilization__stdcell" $stdcell_util + + utl::metric_int "design__rows" $std_rows + dict for {site_name count} $rows { + utl::metric_int "design__rows:$site_name" $count + } + + utl::metric_int "design__sites" $std_sites + dict for {site_name count} $sites { + utl::metric_int "design__sites:$site_name" $count + } } # namespace