Forum Discussion

Rohit's avatar
Rohit
Icon for New Contributor rankNew Contributor
7 years ago

ISR Not invoked for custom Avalon Interrupt Interface.

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.

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

4 Replies