Forum Discussion
Altera_Forum
Honored Contributor
20 years agook... now maybe I understand...
There is only one interrupt vector in nios, that is directly handled by the Altera HAL. Then, the asm handler written by Altera reads the pending register and calls a function out of a vector of function pointers with 32 locations. The 32 locations are filled with alt_irq_register, with the addresses you provide when you call the function. That is, it is up to you to specify your interrupt handler. It's like you attached an asm routine to the IRQ pin of your ARM7, and then inside the handler you decide which function have to be called... bye Paolo