Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

DMA interrupts in HPS: how to?

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.