Forum Discussion
Altera_Forum
Honored Contributor
20 years agothe question about the interrutor vertor table
the file of Nios II Software Developer's Handbook_v5 is not explicit. can you help me? 1 all of the interruptor vertor table of nios is how to dispatch in the hardware address like the ...
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