cpu_hdldesign included with the Vivado tools, the following scripts provide examples for most of the commands discussed in the previous sections. You can perform power reporting dynamically using Tcl commands. For example:
You can also use a Tcl script. The script examples below assume that you are using the batch mode for sourcing the script.
vivado -mode batch -source power_analysis.tcl