Forum Discussion
Altera_Forum
Honored Contributor
10 years agoCustom component with interrupt
I'm working on a custom Qsys component. It does everything it's supposed to do, but it takes a long time (reading flash memory) so I need to make it non-blocking. I added an interrupt sender t...
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- Do I need to add some kind of interrupt ACK into my code/component? What is that standard way this is done? --- Quote End --- The "standard" way is probably with control register bits corresponding to interrupt enable, interrupt status, and interrupt pending. Then your irq output is just an "AND" of the three. The "ACK" would be a write to the interrupt pending bit to clear it. Since your first attempt was just a fixed duration assertion of the signal, you can probably get by with something much simpler like just asserting the irq until any read/write to the component is performed (e.g. clear the IRQ bit on the 'chipselect' input edge, if you have one).