Altera_Forum
Honored Contributor
10 years agoStream data from USB device to FPGA
Hi,
I have DE1-SoC dev board, which has the Cyclone V SoC device. The USB interface is connected with the HPS. I want to stream data from USB to FPGA, I tried to map the FPGA address to the userspace using mmap() but this is causing the Linux kernel to crash. I also tried to write a device driver for my FPGA component and write to the module file: /sys/bus/platform/driver/fpga_component But this also fails and causes the kernel to crash. I feel that this method is not reliable, some have suggested using DMA so that: USB <--> DMA <--> FPGA. But I am not sure how to realize this. I read in the Cyclone V handbook that USB OTG is on the L3 Master Peripheral Switch, and HPS-to-FPGA is on L3 Main Switch. Table 4-2 Interconnect connectivity matrix shows that there is a connection between USB OTG and HPS-to-FPGA bridge. I wonder how can I use that to transfer data from USB to my FPGA component. If there is any useful resources for using utilizing that or if there is any good and robust method to transfer data between USB and FPGA please tell me. Thanks.