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

Why FPGA to HPS Interrupts is only working for Switches?

jagumiel
Novice
1,190 Views

Hello.

 

I have catched the IRQ 41 on Linux, but it's only working when I set the output to a switch peripheral.

 

I have built the device-tree and I have created a Kernel module which reads the interrupts and performs an action. In my case I want to receive an IRQ, read the value, negate it, and then, send it back to the FPGA.

In the Qsys I assigned the IRQ 0 to the bus 0. And in the pin planner i'm assigning a pin for a switch. It's working.

 

But... When I want to send a signal from a key or from an FPGA generated signal, it doesn't catch it and I don't know why.

qsys.PNG

This is the result when I use a SW. I also can see on the oscilloscope the output from the HPS, because I amsending it back to the FPGA and outputting it through GPIO.

linux.PNG

 

0 Kudos
3 Replies
EBERLAZARE_I_Intel
583 Views

Hi,

 

Are you using Arria 10?

 

The FPGA-HPS-Interrupt document can be referred here, page 1010:

 

Regards.

 

0 Kudos
jagumiel
Novice
583 Views
0 Kudos
EBERLAZARE_I_Intel
583 Views

Hi,

 

For Cyclone V SoC-FPGA, refer here:

 

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/cyclone-v/cv_54027.pdf

Jump to Interrupt page 28-5 (3421/3501 in pdf) onward.

0 Kudos
Reply