本设计使用Xilinx系列FPGA为平台,调用Xilinx官方的XDMA方案搭建基中断模式下的PCIE通信架构,XDMA的数据缓存有两条通路,一条基于DDR3的大批量数据缓存通路,该条通路一般用作图像、AD数据等缓存,适用于Xilinx Artix7-100T及其以上型号的FPGA;另一条基于BRAM的小批量用户数据缓存通路,该条通路一般用作用户控制数据的缓存,...
}/*中断处理进程*/void*event_process() {inti;inttxint_rc; interrupt_fd= open_event("/dev/xdma0_events_0");//打开用户中断while(work==1) { read_event(interrupt_fd);//获取用户中断int_rc=read_control(control_base,0x00000);//读总中断寄存器switch(int_rc) {case1://接收中断sem_post(∫...
}/*中断处理进程*/void*event_process() {inti;inttxint_rc; interrupt_fd= open_event("/dev/xdma0_events_0");//打开用户中断while(work==1) { read_event(interrupt_fd);//获取用户中断int_rc=read_control(control_base,0x00000);//读总中断寄存器switch(int_rc) {case1://接收中断sem_post(∫...
文件目录分别说明下 A. _c2h_x,是card to host的设备,板卡向CPU传输数据的时候使用这个设备; B. _h2c_x,是host to card的设备,CPU向板卡发送数据的时候使用这个设备; C. _control,是XDMA的内部寄存器控制设备,一般用户不需要使用; D. _user,是PCIe to AXI Lite Master Interface选择的空间; E. _event_...
C. _control,是XDMA的内部寄存器控制设备,一般用户不需要使用; D. _user,是PCIe to AXI Lite Master Interface选择的空间; E. _event_x,是IP配置第四页,选择的用户层中断对应的设备; 5.2 软件测试,Linux环境 如果IP配置选择AXI-Memory Map,参考dma_memory_mapped_test.sh,这个脚本写入一段数据到BlockRAM中,...
2、user是DMA地址空间操作了 3、event 是中断 4、hc2 传输方向主机到开发板 5、c2h 传输方向开发板到...
2、xdma核提供了INTX中断和MSI中断的方式,xilinx官方测试程序也提供了user_event命令来进行中断测试,...
*/static const struct file_operations events_fops={.owner=THIS_MODULE,.open=char_open,.release=char_close,.read=char_events_read,.poll=char_events_poll,};voidcdev_event_init(struct xdma_cdev*xcdev){xcdev->user_irq=&(xcdev->xdev->user_irq[xcdev->bar]);cdev_init(&xcdev->cdev,&eve...
build output binaries. |__ exe/ - Contains sample client application source code. | |__ simple_dma/ - Sample code for AXI-MM configured XDMA IP. | |__ streaming_dma/ - Sample code for AXI-ST configured XDMA IP. | |__ user_events/ - Sample code for access to user event interrupts...
build output binaries. |__ exe/ - Contains sample client application source code. | |__ simple_dma/ - Sample code for AXI-MM configured XDMA IP. | |__ streaming_dma/ - Sample code for AXI-ST configured XDMA IP. | |__ user_events/ - Sample code for access to user event interrupts...