From 2affff2a7928bea92417f8c7964192ab57b0cd17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Tue, 29 Oct 2024 13:45:01 +0100 Subject: [PATCH 1/3] report_design_area: allow redirection to file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit same as all other commands, don't know why this one slipped between the cracks Signed-off-by: Øyvind Harboe --- src/rsz/src/Resizer.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rsz/src/Resizer.tcl b/src/rsz/src/Resizer.tcl index 19b765a95f9..cdf0d14aedb 100644 --- a/src/rsz/src/Resizer.tcl +++ b/src/rsz/src/Resizer.tcl @@ -637,7 +637,7 @@ proc repair_timing { args } { sta::define_cmd_args "report_design_area" {} -proc report_design_area { args } { +sta::proc_redirect report_design_area { args } { sta::parse_key_args "report_design_area" args keys {} flags {} set util [format %.0f [expr [rsz::utilization] * 100]] set area [sta::format_area [rsz::design_area] 0] From 23f5678bc324293ca8daa3482672426642255596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Tue, 29 Oct 2024 13:56:21 +0100 Subject: [PATCH 2/3] report_design_area: tried to add the redirect arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- src/rsz/src/Resizer.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rsz/src/Resizer.tcl b/src/rsz/src/Resizer.tcl index cdf0d14aedb..a89802e2c00 100644 --- a/src/rsz/src/Resizer.tcl +++ b/src/rsz/src/Resizer.tcl @@ -635,7 +635,7 @@ proc repair_timing { args } { ################################################################ -sta::define_cmd_args "report_design_area" {} +sta::define_cmd_args "report_design_area" {[> filename] [>> filename]} ;# checker off sta::proc_redirect report_design_area { args } { sta::parse_key_args "report_design_area" args keys {} flags {} From 789adff39dd831586243ff62d602d8e084e5a7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Tue, 29 Oct 2024 14:04:09 +0100 Subject: [PATCH 3/3] report_design_area: fix syntax error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- src/rsz/src/Resizer.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rsz/src/Resizer.tcl b/src/rsz/src/Resizer.tcl index a89802e2c00..5bcb0d85a64 100644 --- a/src/rsz/src/Resizer.tcl +++ b/src/rsz/src/Resizer.tcl @@ -637,7 +637,7 @@ proc repair_timing { args } { sta::define_cmd_args "report_design_area" {[> filename] [>> filename]} ;# checker off -sta::proc_redirect report_design_area { args } { +sta::proc_redirect report_design_area { sta::parse_key_args "report_design_area" args keys {} flags {} set util [format %.0f [expr [rsz::utilization] * 100]] set area [sta::format_area [rsz::design_area] 0]