Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

DMA interrupts in HPS: how to?

Altera_Forum
Honored Contributor II
1,455 Views

Hello 

 

I have been using the Cyclone V SoC devkit, and at this point I have built a simple project that is able to operate the ethernet EMAC2 interface in the FPGA through the use of SGDMAs and memories. At this moment, I would like to make the process automatic, through the use of interrupts from the DMA blocks to the HPS. In Qsys, I have connected the interrupt lines to the HPS. Is this enough to set up these interrupts? 

I dont have much knowledge in the software-end of this equation, and so far I have been using the provided kernel to test my system (mostly the tests are based in memory maps). 

 

I was able to generate a simple project that was receiving interrupts from the FPGA push buttons, something similar to what is done in the Golden Reference design. However, I was checking the interrupts in the /sys/class/gpio combined with /proc/interrupts. However, when I implement my ethernet project, I cant find the configured interrupts anywhere. Is there a need to create some sort of drivers for this case? (the simple push-button project worked, but since I am using the default kernel, it can already have drivers for this case, since the same is done in the Golden reference design). 

Is there a simple tutorial on how to configure these interrupts and get them to work? 

 

As I said, I dont have much knowledge in the software side of the project, and even after reading some of the provided documentation I still can't figure it out. 

 

Thank you
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
475 Views

I eventually read through some documentation and wrote a simple driver, able to fetch the information from the device tree, and then configure all the registers / interrupts. I could have used some help / someone pointing me in the right direction though.

0 Kudos
Reply