Forum Discussion
How to create build.bat for HLS project?
- 7 years ago
You can use the build.dat provided in the examples as a template. Just copy this file over to your project folder. Edit it and change the @echo offset "SOURCE_FILES=counter.cpp" to point to your C++ source file. Save the file and then invoke the init_hls.bat file and then source this build.bat. If should compile your source and generate the required output files and also compile the design for Quartus. Just make sure you also change the -march=Arria10 to the device you are targetting before compiling for FPGA.
You can use the build.dat provided in the examples as a template. Just copy this file over to your project folder. Edit it and change the @echo offset "SOURCE_FILES=counter.cpp" to point to your C++ source file. Save the file and then invoke the init_hls.bat file and then source this build.bat. If should compile your source and generate the required output files and also compile the design for Quartus. Just make sure you also change the -march=Arria10 to the device you are targetting before compiling for FPGA.