I have run into the same problem with my project in Quartus 13.1. I have two instances of a custom component in my design, and the interrupts are set to -1 in the system.h file. When I first checked the _hw.tcl file, the associatedAddressablePoint was blank. I had used the default "interrupt_sender" name in the component, so I renamed it. After I regenerated the component with this change, the associatedAddressablePoint was set as follows:
# # connection point AD9637_irq_sender#
add_interface AD9637_irq_sender interrupt end
set_interface_property AD9637_irq_sender associatedAddressablePoint AD9637_irq_sender
set_interface_property AD9637_irq_sender associatedClock adc_clk
set_interface_property AD9637_irq_sender associatedReset reset
set_interface_property AD9637_irq_sender ENABLED true
set_interface_property AD9637_irq_sender EXPORT_OF ""
set_interface_property AD9637_irq_sender PORT_NAME_MAP ""
set_interface_property AD9637_irq_sender CMSIS_SVD_VARIABLES ""
set_interface_property AD9637_irq_sender SVD_ADDRESS_GROUP ""
add_interface_port AD9637_irq_sender ad9637_irq irq Output 1
I then fully replaced the components in qsys and verified that the interrupt sender name changed on the component. I assigned the IRQ in qsys and re-generated the design and the BSP for the Nios. However, I still do not see the interrupt in system.h:
/*
* AD9637_interface_0 configuration
*
*/
# define AD9637_INTERFACE_0_BASE 0x1000# define AD9637_INTERFACE_0_IRQ -1# define AD9637_INTERFACE_0_IRQ_INTERRUPT_CONTROLLER_ID -1# define AD9637_INTERFACE_0_NAME "/dev/AD9637_interface_0"# define AD9637_INTERFACE_0_SPAN 1024# define AD9637_INTERFACE_0_TYPE "AD9637_interface"# define ALT_MODULE_CLASS_AD9637_interface_0 AD9637_interface
/*
* AD9637_interface_1 configuration
*
*/
# define AD9637_INTERFACE_1_BASE 0x1400# define AD9637_INTERFACE_1_IRQ -1# define AD9637_INTERFACE_1_IRQ_INTERRUPT_CONTROLLER_ID -1# define AD9637_INTERFACE_1_NAME "/dev/AD9637_interface_1"# define AD9637_INTERFACE_1_SPAN 1024# define AD9637_INTERFACE_1_TYPE "AD9637_interface"# define ALT_MODULE_CLASS_AD9637_interface_1 AD9637_interface
Anyone have suggestions?