cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
goychman
Explorer
Explorer
4,426 Views
Registered: ‎11-03-2013

indication that vivado tcl ended

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?

0 Kudos
3 Replies
evgenis1
Advisor
Advisor
4,404 Views
Registered: ‎12-03-2007

Hi,

 

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

Thanks,

Evgeni

 

Tags (2)
0 Kudos
goychman
Explorer
Explorer
4,307 Views
Registered: ‎11-03-2013

Hi,

 

Thank you very much but I'm using Vivado in Windows.

 

Do you know the equivalent of this code for a Windows systems?

0 Kudos
evgenis1
Advisor
Advisor
4,299 Views
Registered: ‎12-03-2007

Hi @goychman ,

 

You can call Vivado from Windows Power Shell. There should be functionally equivalent commands in it - just look it up.

 

Thanks,

Evgeni

Tags (2)
0 Kudos