Altera_Forum
Honored Contributor
21 years agoInterrupt from external device
Hi from a new member.
I've interfaced an external device to Nios II using the "user logic" option. The external device is memory mapped, and the basic interface works OK...using the component editor I have successfully provided data, address, RdWrn, Wait, etc. I was able to peek and poke, as well as reading/writing with C code. Once this worked, I wanted to have the external device's IRQn pin cause a Nios interrupt. I added an IRQn signal in the component editor, but... no IRQn pin appeared on the SOPC symbol no IRQ number appeared in the System contents IRQ column. The conclusion I have reached is that adding the IRQn signal in the component editor pertains to the avalon bus, and that creating an external IRQ input pin is a separate matter. I imagine I can accomplish this by implementing a single-bit PIO that interrupts on falling edge and connecting the external device to this pin. Is this the way to go? Is there a better way? Thanks!