仅对英特尔可见 — GUID: ewa1462811208212
Ixiasoft
2.1. 运行 Intel® HLS Compiler设计实例(Linux)
在Linux系统中运行 Intel® HLS Compiler设计实例:
- 启动终端会话并初始化 Intel® HLS Compiler环境。
有关如何初始化环境,请参阅初始化 Intel HLS Compiler Pro Edition环境。
- 浏览至 <quartus_installdir>/hls/examples/<design_example_name> 目录,其中<quartus_installdir>是您安装的 Intel® Quartus® Prime软件的目录。
例如,/home/<username>/intelFPGA_pro/20.2 。
- 运行make test-x86-64命令。该命令将C++源代码编译为x86-64二进制可执行文件。然后,在CPU上运行生成的可执行文件。
运行make test-x86-64命令后的预期结果:
- 控制台显示用于生成二进制的命令。例如, i++ -march=x86-64 -o test-x86-64 <source_files> .
- HLS编译器创建的可执行文件(例如,test-x86-64)位于当前工作目录中。
- 控制台显示可执行文件的输出表示执行成功。
$ make test-x86-64 i++ MGS.cpp QRD_Testbench.cpp TestbenchHelpers.cpp --fpc --fp-relaxed -march=x86-64 -o test-x86-64 +----------------------------------------+ | Run ./test-x86-64 to execute the test. | +----------------------------------------+
- 运行make test-fpga命令。该命令将C++源代码编译成硬件可执行文件,然后运行已生成HDL的仿真。
运行make test-fpga命令后的预期结果:
- 控制台显示其用于生成testbench二进制的命令,和工程目录的内容。例如: i++ -march="<FPGA_family_or_part_number>” <source_files> -o test-fpga.
- HLS编译器创建的.prj目录(例如, test-fpga.prj)位于当前工作目录中。
- 控制台显示可执行文件的输出表示执行成功。
$ make test-fpga i++ MGS.cpp QRD_Testbench.cpp TestbenchHelpers.cpp -v --fpc --fp-relaxed -march=Arria10 -o test-fpga Target FPGA part name: 10AX115U1F45I1SG Target FPGA family name: Arria 10 Target FPGA speed grade: -2 Analyzing MGS.cpp for testbench generation Creating x86-64 testbench Analyzing MGS.cpp for hardware generation Analyzing QRD_Testbench.cpp for testbench generation Creating x86-64 testbench Analyzing QRD_Testbench.cpp for hardware generation Analyzing TestbenchHelpers.cpp for testbench generation Creating x86-64 testbench Analyzing TestbenchHelpers.cpp for hardware generation Optimizing component(s) and generating Verilog files Generating cosimulation support Generating simulation files for components: qrd HLS simulation directory: /data/username/HLS_Trainings/examples/QRD/test-fpga.prj/verification. Linking x86 objects +--------------------------------------+ | Run ./test-fpga to execute the test. | +--------------------------------------+