Skip to content

Commit

Permalink
sweep-wns.tcl: better error messages as we no longer redirect stdout …
Browse files Browse the repository at this point in the history
…to a deleted file

Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Dec 7, 2024
1 parent 9430120 commit b725a18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions sweep-wns.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion sweep.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit b725a18

Please sign in to comment.