Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12408 Discussions

ISR Not invoked for custom Avalon Interrupt Interface.

Rohit
Beginner
2,064 Views

Dear All,

 

We have created Avalon MM Slave with AV Interrupt Interface using Qsys. The IRQ sender from the Slave device (form AV Interrupt Interface ) was connected to IRQ Receiver of NIOS II as shown in attached image.

qsys.png

 

 

The Slave configuratin in system.h file as as below.

/* reg16_component configuration */ #define ALT_MODULE_CLASS_reg16_component reg16_component #define REG16_COMPONENT_BASE 0x81008 #define REG16_COMPONENT_IRQ 0 #define REG16_COMPONENT_IRQ_INTERRUPT_CONTROLLER_ID 0 #define REG16_COMPONENT_NAME "/dev/reg16_component" #define REG16_COMPONENT_SPAN 2 #define REG16_COMPONENT_TYPE "reg16_component"

Also the ISR was registered as follows,

alt_ic_isr_register(REG16_COMPONENT_IRQ_INTERRUPT_CONTROLLER_ID, REG16_COMPONENT_IRQ, (alt_isr_func)handle_interrupt, 0, 0x0);

Now whenever the interrupt is generated, ISR is not invoked.

Any suggestions.

 

Best Regards,

Rohit Mishra

 

0 Kudos
4 Replies
JOHI
New Contributor II
221 Views

Hello,

PIO components also generate interrupts. There are several tutorials you can find on the Net to see how interrupts are implemented. By exchanging the PIO component with your component, or the pio nios-II democode to your code, you can narrow down your search.

Best regards,

Johi.

 

Ahmed_H_Intel1
Employee
221 Views

Hi,

I recommend using Vector Interrupt Controller VIC to interrupt and replicate one of the reference designs in INTEL's design store.

Here:

https://www.intel.com/content/www/us/en/programmable/support/support-resources/design-examples/intel...

Ahmed_H_Intel1
Employee
221 Views
Susannah_M_Intel
Employee
221 Views

The link to the example is giving me a 404 not found error. Could I have a current link? Thank you

Reply