-
Notifications
You must be signed in to change notification settings - Fork 1
/
xilinx_cable_installer.cmd
50 lines (43 loc) · 1.23 KB
/
xilinx_cable_installer.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
rem ---------------------------------------------------------------------------------
rem
rem Distributed under MIT Licence
rem See https://github.com/house-of-abbey/scratch_vhdl/blob/main/LICENCE.
rem
rem J D Abbey & P A Abbey, 23 October 2022
rem
rem Install The Cable Driver for Xilinx
rem NB. Run as Administrator
rem
rem https://docs.xilinx.com/r/en-US/ug973-vivado-release-notes-install-license/Install-Cable-Drivers
rem
rem ---------------------------------------------------------------------------------
title Installing Cable Drivers
rem Setup paths to local installations
rem Batch file's directory where the source code is
set SRC=%~dp0
rem drop last character '\'
set SRC=%SRC:~0,-1%
if exist %SRC%\design\config.cmd (
call %SRC%\design\config.cmd
) else (
echo Configuration file 'config.cmd' not found. Copy and edit 'config.cmd.editme'.
goto error
)
if not defined VIVADO_INSTALL (
echo Variable 'VIVADO_INSTALL' not set.
goto error
)
set VIVADO_INSTALL_DIR=%VIVADO_INSTALL%\..
pushd %VIVADO_INSTALL_DIR%\data\xicom\cable_drivers\nt64
call install_drivers.cmd -log_filename /driver_install.log
set EC=%errorlevel%
popd
pause
exit /b %EC%
:error
popd
echo.
echo Installation FAILED
pause
exit /b 1