From b725a18a240db45842b1b83b4814630de42ebde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Sat, 7 Dec 2024 14:41:55 +0100 Subject: [PATCH] sweep-wns.tcl: better error messages as we no longer redirect stdout to a deleted file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- sweep-wns.tcl | 8 +++++--- sweep.bzl | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sweep-wns.tcl b/sweep-wns.tcl index f896420..632c6bf 100644 --- a/sweep-wns.tcl +++ b/sweep-wns.tcl @@ -7,6 +7,8 @@ set paths [find_timing_paths -path_group reg2reg -sort_by_slack -group_count 1] set path [lindex $paths 0] set slack [get_property $path slack] -puts "slack: $slack" -report_tns -report_cell_usage +set f [open $::env(OUTPUT) w] +puts $f "slack: $slack" +close $f +report_tns >> $::env(OUTPUT) +report_cell_usage >> $::env(OUTPUT) diff --git a/sweep.bzl b/sweep.bzl index 15b3a2e..d00f06c 100644 --- a/sweep.bzl +++ b/sweep.bzl @@ -89,9 +89,9 @@ def orfs_sweep( ], arguments = { "ODB_FILE": "$(location :" + name + "_" + variant + "_odb)", + "OUTPUT": "$(location :" + name + "_" + variant + ".txt)", }, data = [":" + name + "_" + variant + "_odb"], - extra_args = "> $WORK_HOME/" + name + "_" + variant + ".txt", script = Label(":sweep-wns.tcl"), visibility = visibility, )