Forum Discussion
Cyclone V - DMA Controller Intel FPGA IP Interrupts
Hello,
I am currently trying to find out how to trigger a transfer of DMA Controller Intel FPGA IP (connected between f2h_sdram0 and on-chip 2-port RAM in QSYS) using an interrupt from the FPGA side.
The DMA works when the transfer is started from the Linux userspace by writing GO bit (2^3) to the CONTROL register (offset 6 in the /dev/mem memory-mapped space of the controller's control_port_slave on the AXI bus).
The CONTROL register contains interrupt enable bit (2^4) but I believe it is only used to enable Interrupt Sender (irq port of the IP block).
Q: Is this IP related to the HPS' DMA Peripheral Requests (0 to 7)? If so, how to tell the IP block what request should be used as an interrupt source for trigger?
Or maybe I use wrong IP block and I should use eg. mSGDMA instead?
Thanks in advance.
15 Replies
- vrbavojtech
New Contributor
Thanks for the information.
In the previous post I stated that I clear the PER2MODRST register bits (using mw.b command), but the DMA-330 is stuck in the Wait For Peripheral state (the waiting state) no matter if I set or reset the DMA request signal in the fabric.
Maybe the problem could be accessing DMA from the linux userspace?
Providing a minimal functioning example (eg. Quartus project) or at least the HPS configuration with the code would be really helpful
Thank you. - EBERLAZARE_I_Intel
Regular Contributor
Hi,
Unfortunately we do not have the design example. You may explore and try the mentioned other DMA examples from below and the project in the first link:
https://github.com/robertofem/CycloneVSoC-examples/tree/master/FPGA-hardware/DE1-SoC
https://github.com/robertofem/CycloneVSoC-examples/tree/master/Baremetal-applications
https://github.com/robertofem/CycloneVSoC-examples/tree/master/Linux-applications
I hope that I have provided the support and suffice information so that we are able to close the case.
- EBERLAZARE_I_Intel
Regular Contributor
Hi,
I hope that your question has been addressed, I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.