DE1SOC DE10-NANO DE10-Standard OpenCL hardware that support VGA and desktop. And Some applications such as usb camera YUYV to RGB , Sobel and so on.
You can downlaod the c5soc_opencl_lxde_fpga_reconfigurable_20201027.img
all in one SD card Image file here Baidu Cloud Link or Google Drive Link.
update_rbf_and_dtb.bat
or sh ./update_rbf_and_dtb.sh
on PC to update rbf and dtb for target boardhost.17.1.run
directly. (which keep same as your target board and the OpenCL SDK version )Target Board | Hardware Template wtih VIP core | terasic's Hardware Template |
---|---|---|
DE1SOC | de1soc_sharedonly_vga | de1soc_sharedonly |
DE10-nano | de10_nano_sharedonly_hdmi | de10_nano_sharedonly |
DE10-Standard | de10_standard_sharedonly_vga | de10_standard_sharedonly |
de10_nano_sharedonly_mil for DE10-nano + Mi_LCD
A UVC usb camera application program is used to convert YUYV to RGB and Gray by using opencl.
Host usage:
colorApp.run -w960 -h720
colorApp.run -w640 -h480 -r2 -g1 -b2 -u700 -d200
YUYV --> Y(gray) --> sobel
camera_sobel.run -v //"-v" hardware mode
do sobel by using four methods : arm , neon , opencl ,opencl with shared memory
Methods | Frequency | Time |
---|---|---|
Cortex-A9 | 800Mhz | 168ms |
Neon | ? | 37ms |
OpenCL Memory Copy | 140Mhz | 256ms |
OpenCL Shared Memory | 140Mhz | 14.8ms |
Host useage:
number 1 2 3 4 5 6 different ways to run filter
"+" Increase filter threshold
"=" Reset filter threshold to default
" q/<enter>/<esc>" Quit the program
Host useage:
mandelbrot -w=800 -h=640 -c=32
Set the CL_CONTEXT_COMPILER_MODE_INTELFPGA=3 (opencl sdk17.1 ~ 19.1) flag in environment to disable the reprogramming of the FPGA by host. For updating aocx, go to How to do fpga reconfiguration