Forum Discussion
NIOS handle IRQ from FPGA register
- 1 year ago
see answer on the new case (with same related issue) you opened: https://community.intel.com/t5/Nios-V-II-Embedded-Design-Suite/NIOS-connected-to-IRQ-from-FPGA-but-not-PIO/m-p/1693761/highlight/true#M53832:~:text=NIOS%20connected%20to%20IRQ%20from%20FPGA%20but%20not%20PIO
I can understand your second paragraph about OR-combine the 32 interrupt. I will try this soon. Thank you!
I can't understand the first paragraph you posted.
Do you mean the ID -1 generated is correct?
Do you mean the C code in my upper post is correct?
In my IP source Verilog code, I do this:
- StefanG_Altera1 year ago
Occasional Contributor
In your case the IRQ line number BF5V_0_IRQ is not assigned ("-1"), despite being assigned a "4" in platfrom designer.
Your component is exposing 32 bits (as you show in the component editor window), try OR-ing them inside your IP RTL and expose only one.
The generated system.h file should reflect the IRQ line number and a non "-1" controller-ID, e.g.:
#define BF5V_IRQ 4
#define BF5V_IRQ_INTERRUPT_CONTROLLER_ID 0
Your interrupt registration example code syntax looks correct to me.