mirror of
https://github.com/supleed2/ELEC50003-P1-CW.git
synced 2024-12-23 05:55:50 +00:00
27 lines
783 B
Batchfile
27 lines
783 B
Batchfile
|
|
@ REM ######################################
|
|
@ REM # Variable to ignore <CR> in DOS
|
|
@ REM # line endings
|
|
@ set SHELLOPTS=igncr
|
|
|
|
@ REM ######################################
|
|
@ REM # Variable to ignore mixed paths
|
|
@ REM # i.e. G:/$SOPC_KIT_NIOS2/bin
|
|
@ set CYGWIN=nodosfilewarning
|
|
|
|
@set QUARTUS_BIN=%QUARTUS_ROOTDIR%\\bin
|
|
@if exist %QUARTUS_BIN%\\quartus_pgm.exe (goto DownLoad)
|
|
|
|
@set QUARTUS_BIN=%QUARTUS_ROOTDIR%\\bin64
|
|
@if exist %QUARTUS_BIN%\\quartus_pgm.exe (goto DownLoad)
|
|
|
|
:: Prepare for future use (if exes are in bin32)
|
|
@set QUARTUS_BIN=%QUARTUS_ROOTDIR%\\bin32
|
|
|
|
:DownLoad
|
|
%QUARTUS_BIN%\\quartus_pgm.exe -m jtag -c 1 -o "p;DE10_LITE_D8M_VIP.sof"
|
|
@ set SOPC_BUILDER_PATH=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH%
|
|
@ "%QUARTUS_BIN%\\cygwin\bin\bash.exe" --rcfile ".\test.sh"
|
|
|
|
pause
|