UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Reply

Cannot locate vivado.bat file

Highlighted
Visitor
Posts: 5
Registered: ‎07-25-2017

Cannot locate vivado.bat file

I have been working with Vivado for about 1 year now and there were no problems with my tool. But a few days back when I tried launching simulation of a simple multiplier, Vivado hung. It would not close or anything. I restarted my computer and tried to start Vivado and it generated an error message saying vivado.bat file was not found. I searched online for some solutions and learnt that this file should be in my C:/Xilinx/Vivado/2016.2/bin/ folder. So I browsed through this folder, but I did not find any vivado.bat file in the folder. There was a file named "vivado" without any extension, I thought re-naming it might work, but re-naming did not work. Do I need to re-install Vivado? Or is there some way I can get the required file with an assurance that the file would work?

Xilinx Employee
Posts: 453
Registered: ‎03-16-2017

Re: Cannot locate vivado.bat file

Hi abheek19@hotmail.com,

 

Have you updated your windows 10 to the latest updates? If yes, than that could be one of the root cause since Vivado 2016.2 does not support the windows 10 updates. - Give it a try with this AR. https://www.xilinx.com/support/answers/69908.html

 

Or above is not the case than provide the snapshot of the error message which you are facing. 

 

Regards,

hemangd

 

 

Scholar
Posts: 2,772
Registered: ‎04-26-2015

Re: Cannot locate vivado.bat file

Complete contents of vivado.bat for 2016.2:

 

@echo off
setlocal
rem #
rem # COPYRIGHT NOTICE
rem # Copyright 1986-2014 Xilinx, Inc. All Rights Reserved.
rem # 

set _RDI_CWD=%cd%
pushd "%~dp0"
set _RDI_BINROOT=%cd%
cd /d "%_RDI_CWD%"

rem ##
rem # Setup default environmental variables
rem ##
rem # RDI_BINROOT - Directory *this* script exists in
rem #  E.x. 
rem #    /usr/Test/Install/bin/example
rem #    RDI_BINROOT=/usr/Test/Install/bin
rem #
rem # RDI_APPROOT - One directory above RDI_BINROOT
rem #  E.x. 
rem #    /usr/Test/Install/bin/example
rem #    RDI_APPROOT=/usr/Test/Install
rem #
rem # RDI_BASEROOT - One directory above RDI_APPROOT
rem #  E.x. 
rem #    /usr/Test/Install/bin/example
rem #    RDI_BINROOT=/usr/Test
rem ##
set RDI_PROG=%~n0
call "%_RDI_BINROOT%/setupEnv.bat"

rem # Set XILINX_VIVADO
set RDI_SETUP_ENV_FUNCTION=DIRNAME
call "%RDI_BINROOT%/setupEnv.bat" "%RDI_BINROOT%" XILINX_VIVADO  

set RDI_DEPENDENCY=XILINX_VIVADO_HLS

rem ##
rem # Launch the loader and specify the executable to launch
rem ##
rem #
rem # Loader arguments:
rem #   -exec   -- Name of executable to launch
rem ##
set RDI_PATASK=yes
call "%RDI_BINROOT%/loader.bat" -exec %RDI_PROG% %* 
popd
exit /b %errorlevel%

Is it possible that your anti-virus has decided that vivado.bat is nasty and needs to be removed? Might be worth adding an exclusion for the whole Xilinx folder.