Altera_Forum
Honored Contributor
16 years agoNios interrupt response time
I have a custom SOPC component which has an interrupt sender (irq_n) in it's avalon interface. In my SOPC component HDL I set the irq_n line low, which causes a Nios interrupt handler to fire. In the ISR I perform an avalon read of the custom component. As soon as the avalon read occurs I cancel the interrupt by setting irq_n high in the HDL.
This all works fine and as I would expect. I then did some interrupt response timing by running a counter to see the number of clock cycles between irq_n low and irq_n high. This is taking 10,000 clock cycles or about 200us as my clock is 50MHz. Does this figure look reasonable? I thought 10,000 clocks seemed a long time. I measured it using SignalTap but I was JTAG debugging the Nios uP at the same time, could that affect the result? I would not expect so as the JTAG uart interrupt was lower priority than the custom component. Thanks.