background image

 

 

 

DE5a-Net  OpenCL  

 

 

www.terasic.com

 

March 29, 2017 

 

18 

 

Test vector_add project 

Firstly, use the compiled OpenCL image file vector_add.aocx to configure the FPGA. In Command 
Prompt  window,  type  “cd  C:\intelFPGA_pro\16.1\hld\board\de5a_net_e1\tests\vector_add\bin”  to 

go to 

vector_add\bin

 project folder, then type “

aocl program aclde5a_net0 vector_add.aocx

” to 

configure FPGA with the OpenCL Image vector_add.aocx. If configuration is successfully, you will 

see the successful message as shown in 

Figure 2-16

.

 

 

Figure 2-16 “aocl program aclde5a_net0 vector_add.aocx” configured successfully 

 

In Command Prompt window, execute “

host.exe

”. 

Figure  2-17

 

is the screen shot when the test is 

successful.   

 

Figure 2-17 “vector_add” test successfully 

Содержание DE5a-Net

Страница 1: ...DE5a Net OpenCL www terasic com March 29 2017 1...

Страница 2: ...TALLATION 5 2 2 OPENCL LICENSE INSTALLATION 7 2 3 CONFIGURE 8 2 4 BOARD SETUP 11 2 5 OPENCL ENVIRONMENT VERIFY AND FLASH CVP 12 2 6 COMPILE AND TEST OPENCL PROJECT 16 CHAPTER 3 OPENCL FOR LINUX 19 3 1...

Страница 3: ...amming_guide pdf 1 1 1 1 S Sy ys st te em m R Re eq qu ui ir re em me en nt t The following items are required to set up OpenCL for DE5a Net board DE5a Net Board with two 4GB DDR3 SODIMM installed on...

Страница 4: ...re e An OpenCL project is composed of both OpenCL Kernel and Host Program as shown in Figure 1 1 OpenCL kernel is compiled with Intel FPGA OpenCL compiler provided by the Altera OpenCL SDK The Host Pr...

Страница 5: ..._US pdfs literature hb opencl sdk aocl_getting_started pdf 2 2 1 1 S So of ft tw wa ar re e I In ns st ta al ll la at ti io on n This section describes where to get the required softwares for OpenCL Q...

Страница 6: ...com en us download details aspx id 34673 DE5a Net OpenCL BSP Board Support Package After Quartus II and OpenCL SDK are installed download the DE5ANET_E1_OpenCL_BSP _16 1 zip DE5a Net windows BSP for I...

Страница 7: ...e path such as c license dat The license can then be set up by creating an environment variable LM_LICENSE_FILE and set its value as c license dat Note that this environment value needs to correspond...

Страница 8: ...TERAOCLSDKROOT windows64 bin and C intelFP GA_pro 16 1 qsys bin into the PATH environment variable so the OpenCL SDK can find the binary file provided by DE5a Net BSP Here are the procedures to create...

Страница 9: ...click on Computer Select Properties 2 Select Advanced system settings 3 In the Advanced tab select Environment Variables 4 In the Environment Variables window as shown below highlight the PATH variabl...

Страница 10: ...17 10 Figure 2 5 Select Path and click Edit bottom Figure 2 6 Edit PATH environment variable 6 In Command Prompt window type aocl install to install PCI Express driver Note that users need to have adm...

Страница 11: ...2 7 1 Make sure your PC is powered off 2 Insert DE5a Net board into PCI Express x8 or x16 slot 3 Connect PC s 12V PCI Express 6 pin power source to the DE5a Net 4 Connect PC s USB port to DE5a Net min...

Страница 12: ...sted in Board list as shown in Figure 2 8 Figure 2 8 de5a_net_e1 is listed in Board list Test aocl flash Command In Command Prompt window type cd C intelFPGA_pro 16 1 hld board de5a_net_e1 tests hell...

Страница 13: ...screen shot when flash programming is done successfully Figure 2 10 aocl flash aclde5a_net_e10 hello_world aocx successfully To make sure a correct image is used when FPGA boots up please make sure th...

Страница 14: ...The diagnose utility in the Arria 10 DE5a Net board reports device information and identifies issues The diagnose utility first verifies the installation of the kernel driver and returns the overall i...

Страница 15: ...ck whether the hello_world OpenCL image which is CvP enabled configures the FPGA successfully In Command Prompt window type cd C intelFPGA_pro 16 1 hld board de5a_net_e1 tests hello_world bin to go to...

Страница 16: ...e5a_net_e1 tests vector_add to go to vector_add project folder then type aoc device vector_add cl o bin vector_add aocx board de5a_net_e1 to compile the OpenCL kernel It will take about o ne hour for...

Страница 17: ...dd and select vector_add sln as shown Figure 2 14 Figure 2 14 Open vector_add sln Host Program After vector_add Host Program project is opened successfully in Visual Studio IDE select menu item BUILD...

Страница 18: ...o to vector_add bin project folder then type aocl program aclde5a_net0 vector_add aocx to configure FPGA with the OpenCL Image vector_add aocx If configuration is successfully you will see the success...

Страница 19: ...ed document https www altera com en_US pdfs literature hb opencl sdk aocl_getting_started pdf 3 3 1 1 S So of ft tw wa ar re e I In ns st ta al ll la at ti io on n This section describes how to downlo...

Страница 20: ...and devices as Figure 3 2 show Figure 3 2 software and devices download Quartus II software uses the built in USB Blaster II drivers on Linux to access USB Blaster II download cable on DE5a Net but a...

Страница 21: ...ols such as gcc include g and make are required to build the driver and application under Linux User can issue yum install gcc ccompat gcc 48 c make command to download and install them and their depe...

Страница 22: ...hld license dat The license can then be set up by creating an environment variable LM_LICENSE_FILE and set its value as root intelFPGA_pro 16 1 hld license dat Note that this environment value needs...

Страница 23: ...US_ROOTDIR bin ALTERAOCLSDKROOT linux64 bin ALTERAOCLSDKR OOT bin ALTERAOCLSDKROOT host linux64 bin root intelFPGA_pro 16 1 qsys bin export LD_LIBRARY_PATH AOCL_BOARD_PACKAGE_ROOT linux64 lib ALTERAOC...

Страница 24: ...vP P This section will show how to make sure the OpenCL environment is setup correctly Firstly please open the Linux system terminal window by right click the Mouse on system desktop then clicking on...

Страница 25: ...to install the kernel related development package matched the current kernel kernel devel package via issuing yum install kernel devel command Test aocl flash Command In the terminal type cd root inte...

Страница 26: ...s the screen shot when flash programming is done successfully Figure 3 8 aocl flash aclde5a_net_e10 hello_world aocx successfully To make sure correct image is used when FPGA boot please make sure the...

Страница 27: ...d The diagnose utility in the Arria 10 DE5a Net board reports device information and identifies issues The diagnose utility first verifies the installation of the kernel driver and returns the overall...

Страница 28: ...n Figure 3 10 it means the hello_world OpenCL image is programmed into the flash correctly and CvP works well Figure 3 10 aocl program aclde5a_net0 hello_world aocx use CvP 3 3 6 6 C Co om mp pi il le...

Страница 29: ...CL Programming Guide http www altera com literature hb opencl sdk aocl_programming_guide pdf Figure 3 11 aoc vector_add cl OpenCL kernel compile successfully Compile Host Program In the terminal type...

Страница 30: ...ld board de5a_net_e1 tests vector_ add bin to go to the vector_add project folder then type aocl program aclde5a_net_e10 vector_add aocx to configure FPGA with the OpenCL Image vector_add aocx Then la...

Отзывы: