Skip to content

Commit 8fa8244

Browse files
committed
Added more scripts for Quartus IDE
1 parent 4150134 commit 8fa8244

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

scripts/compile_quartus.bat

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
@echo off
2+
rem ------------------------------------------------------------------------------
3+
rem compile_quartus.bat
4+
rem Konstantin Pavlov, [email protected]
5+
rem ------------------------------------------------------------------------------
6+
7+
rem Boilerplate script for commandline project compilation in Quartus IDE
8+
9+
10+
11+
cd /d D:\FPGA_PRJ
12+
13+
rem C:\intelFPGA\17.0\quartus\bin64\quartus_sh ^
14+
quartus_sh -t "./DEBUG/pre_flow.tcl" compile FPGA_PRJ FPGA_PRJ
15+
if %ERRORLEVEL% NEQ 0 GOTO fatal_end
16+
17+
quartus_map ^
18+
--read_settings_files=on ^
19+
--write_settings_files=off ^
20+
--64bit ^
21+
FPGA_PRJ -c FPGA_PRJ
22+
rem dont use --effort=fast because it can dramatically increase fitting time
23+
if %ERRORLEVEL% NEQ 0 GOTO fatal_end
24+
25+
quartus_cdb ^
26+
--read_settings_files=on ^
27+
--write_settings_files=off ^
28+
--64bit ^
29+
FPGA_PRJ -c FPGA_PRJ
30+
if %ERRORLEVEL% NEQ 0 GOTO fatal_end
31+
32+
quartus_fit ^
33+
--read_settings_files=off ^
34+
--write_settings_files=off ^
35+
--inner_num=1 --one_fit_attempt=on --pack_register=off ^
36+
--effort=fast --64bit ^
37+
FPGA_PRJ -c FPGA_PRJ
38+
rem use --io_smart_recompile for secondary fitter launches
39+
if %ERRORLEVEL% NEQ 0 GOTO fatal_end
40+
41+
quartus_asm ^
42+
--read_settings_files=off ^
43+
--write_settings_files=off ^
44+
--64bit ^
45+
FPGA_PRJ -c FPGA_PRJ
46+
if %ERRORLEVEL% NEQ 0 GOTO fatal_end
47+
48+
rem quartus_sta FPGA_PRJ -c FPGA_PRJ
49+
rem if %ERRORLEVEL% NEQ 0 GOTO fatal_end
50+
51+
quartus_sh -t "./DEBUG/post_flow.tcl" compile FPGA_PRJ FPGA_PRJ
52+
if %ERRORLEVEL% NEQ 0 GOTO fatal_end
53+
54+
:fatal_end
55+
pause
56+
exit

scripts/convert_sof_to_jam.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@echo off
2+
rem ------------------------------------------------------------------------------
3+
rem convert_sof_to_jam.bat
4+
rem Konstantin Pavlov, [email protected]
5+
rem ------------------------------------------------------------------------------
6+
7+
echo "Converting .SOF to .JAM"
8+
quartus_cpf -c PRJ_NAME.sof PRJ_NAME.jam
9+
pause
10+
exit

0 commit comments

Comments
 (0)