《DE5a-Net-DDR4 的OPENCL BSP的常见问题汇总篇》

From Terasic Wiki

Jump to: navigation, search

1. 请问现在OpenCL开发是不是不需要license吗?

答:以前使用Intel FPGA SDK of OpenCL软件是需要license的,后来从17.1版本以后就开始免费了,不过开发的时候Quartus II 软件的license还是需要的。

2. 关于DE5a-Net-DDR4的OpenCL开发,软件版本选Standard版还是Pro版呢?

答:如果您只是跑OpenCL的话,就只需要Runtime环境 ,那就Pro和Standard 版本都可以跑的。 但是如果您是要编译kernel,就只能用Pro 版本,这个是SDK定死的:Pro.png

3. 在PC和板子断电后重新启动时还是不能识别到板卡,但是运行bring_up下的test.sh就可以了,这是不是正常现象。如果是,是否意味着以后每次断电重启都需要运行test.sh来启动板子?

答:FPGA默认code里面是没PCIE code的,所以需要运行sh test.sh将sof烧写进FPGA 重启之后能找到PCIE设备,但关电后配置文件没有被保存,所以关电重启会需要再次配置FPGA。如果嫌每次都烧写麻烦,可以用aocl flash 命令将bitstream烧写进板子上的FLASH器件,这样默认起来就有OpenCL的code,具体方法可以参考OpenCL手册的。

4. 开发环境ubuntu 14.04LTS 3.16.0.5g-generic,按照手册走到aocl install都没有问题, 但是转到相应目录下执行aocl flash acl0 hello_world.aocx,出错: aocl flash - Initialize the FPGA with a specific startup configuration.Aocl flash acl0 hello world aocx.jpeg

一查发现device name”acl0”没有被系统识别出来(通过执行aocl diagnose发现了问题)Nodeviceattached.jpeg 执行sh test.sh和aocl install后只有LED1常亮,D16常亮。

答:注意观察测试的时候LED0~3的状态。执行sh test.sh和aocl install后只有LED1常亮,这是DDR4没起来,DDR4内存没有正常识别。(让客户重新插拔DDR4后问题解决了,现在板子已经能够正常识别了。)

5.在虚拟机上编译DE5ANET_DDR4_OpenCL_BSP_17.1的helloword不成功。但是aoc emulator可以成功 。

答: Opencl SDK不支持虚拟机。您有提到在虚拟机上通过仿真模式编译aoc emulator成功,这是因为emulator不是真正的在编译硬件,而是通过软件模拟,所以这个时候编译会跟快,有时几分钟就编译完了!

6. 为什么A10 17.1 opencl手册有下载sof这一个步骤?,其他的板子没有看到这个 步骤,其他板子的步骤直接是aocl flash了。

答:这是针对A10板子的特殊情况。17.1之后OpenCL SDK有个bug, aocl flash 需要识别到PCIE设备才能用。 (后面我会通过其他方式解决 ,比如我们在另一款产品DE10-Pro上就解决了)

7. 编译DE5ANET_DDR4_OpenCL_BSP_17.1.zip的fft1d.cl 出错:

aoc: Environment checks are completed successfully.

aoc: If necessary for the compile, your BAK files will be cached

here: /var/tmp/aocl/ You are now compiling the full flow!!

aoc: Selected target board de5a_net_ddr4

aoc: Running OpenCL parser....

aoc: OpenCL parser completed successfully.

aoc: Optimizing and doing static analysis of code...

aoc: Linking with IP library ...

Checking if memory usage is larger than 100%

aoc: First stage compilation completed successfully.

Compiling for FPGA. This process may take a long time, please be patient. Error (17941): The design could not be loaded due to errors.

Error: design::import_design -file base.qdb -overwrite failed!

Error (23031): Evaluation of Tcl

script /opt/intelFPGA_pro/17.1/quartus/common/tcl/internal/qatm_import_design.tcl

unsuccessful Error: Quartus Prime Compiler Database Interface was

unsuccessful. 3 errors, 4 warnings Error (23031): Evaluation of Tcl

script import_compile.tcl unsuccessful Error: Quartus Prime Compiler

Database Interface was unsuccessful. 1 error, 0 warnings Error:

Compiler Error, not able to generate hardware

答:请将这个文件 http://mail.terasic.com.cn/~wyzhou/base.qar 下载下来替换掉BSP里面原始的base.qar文件再编译。

8. 请问目前DE5a-NET-DDR4的 OpenCL BSP(17.1)支持使用 QDRII+ RAMs 作为global memory吗?

答:不支持的,目前没做。

back

Personal tools