Issue in writing the output of report_power to a file #1516
Unanswered
ishwars1618
asked this question in
Q&A
Replies: 1 comment
-
@ishwars1618 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to write the output of the report_power command to a file. This command is invoked by a tcl script that is run at the very end of the make file used to build a design. If I just have the report_power command in the tcl script, its output gets printed on the screen (stdout). If I use one the following two methods, the resulting file is empty.
Method 1
report_power > "::$env(RESULTS_DIR)/output.txt"
or
Method 2
set outfile $::env(RESULTS_DIR)/output.txt
set outfp [open $outfile w+]
set pwrstats [report_power]
puts $outfp $pwrstats
close $outfp
Please let me know what I am doing incorrectly.
Thanks,
Ishwar S.
Beta Was this translation helpful? Give feedback.
All reactions