]> git.sesse.net Git - pistorm/blob - rtl/make.bat
Add Meson build files.
[pistorm] / rtl / make.bat
1 set quartus_bin_path=C:\intelFPGA_lite\20.1\quartus\bin64
2 set piaddress=192.168.1.144
3
4 %quartus_bin_path%\quartus_sh --flow compile pistorm
5 if %errorlevel% neq 0 GOTO ERRORCOMPILE
6
7 %quartus_bin_path%\quartus_cpf -c -q 100KHz -g 3.3 -n p output_files\pistorm.pof bitstream.svf
8 if %errorlevel% neq 0 GOTO ERRORSVF
9
10 echo y | pscp -l pi -pw raspberry -P 22 bitstream.svf %piaddress%:./pistorm/rtl/bitstream.svf
11 if %errorlevel% neq 0 GOTO ERRORSCP
12
13 echo y | plink -l pi -pw raspberry -P 22 %piaddress% "cd pistorm && ./nprog.sh"
14 if %errorlevel% neq 0 GOTO ERRORPROG
15
16 goto done
17
18 :ERRORCOMPILE
19 echo "ERROR COMPILE"
20 goto done
21
22 :ERRORSVF
23 echo "ERROR SVF"
24 goto done
25
26 :ERRORSCP
27 echo "ERROR SCP"
28 goto done
29
30 :ERRORPROG
31 echo "ERROR PROGRAMM"
32
33 :DONE