02-07-2017 06:46 AM
I'm running vivado from a bat file with the following command:
%vivado% -mode batch -nojournal -log run_logs/run_log.log -source tcl.tcl
I would like to know when the vivado finished running, is there any way to know this?
Does this line return a value for when it's done?
Is there any "workaround" to know that vivado finished and the bat file can execute another command, i.e. run another tcl?
02-07-2017 12:17 PM
On Linux systems you can check for return code. Vivado failed if the code is not equal to zero.
Here is an example:
vivado -mode batch -nojournal -log run_logs/run_log.log -source tcl.tcl if [ $? -ne 0 ] ; then echo "script has failed" else echo "script has completed" fi
This is blocking command. So as soon as it finishes, it'll execute the next command.
If you want non-blocking, run it in a background.
vivado -mode batch -nojournal -log run_logs/run_log.log -source tcl.tcl &
echo "vivado is running in a background" wait
02-14-2017 08:05 AM