Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

External Interrupts

Altera_Forum
Honored Contributor II
889 Views

I need to handle several external (to the FPGA) interrupts inside the NiosII core. I understand that I could use a PIO module and merely have an ISR respond to that interrupt and then route them myself. However, I am interested in modifying the uClinux code as little as possible and would prefer not to complicate the issue. So that being said I am wondering if I have another option besides making as many PIO modules as I have external interrupts to do this.  

 

Merely as a reference I am using a NiosII/f with the PCI core from Altera and talking to several PCI devices including a OHCI1394 part. 

 

Suggestions???
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
202 Views

Maybe you could create a SOPC Builder component with a single slave interface, which only has an IRQ pin on it? If you don't give it any HDL source files, it will just export the IRQ pin to the system module. Then you just have to create as many of these components as you need interrupts, and it's like having external IRQ pins. 

 

You'll need to rebuild the SOPC project and chip, but I don't think uClinux will need rebuilding (since there is no new address space taken and you don't have to initialize PIOs). Then you just have to hook in your interrupt handlers, and you should be good.
0 Kudos
Reply