Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12658 Discussions

Slow clock domain peripheral generating interrupt for a fast clock domain Nios takes too long to clear.

gyuunyuu
New Contributor II
813 Views

​A Qsys custom peripheral is running at 33MHz and generates an interrupt that goes to a Nios runnign at 99 MHz. The Nios then has to clear the interrupt by writing to a register in the custom component. However, it will take several 99MHz clock cycles before the interrupt source is deasserted as it is running at a slow clock. This can cause the ISR to be reexecuted sometimes. What is the solution to this problem in Qsys?

0 Kudos
1 Reply
Ahmed_H_Intel1
Employee
688 Views

Hi,

I see you can create an external block like an RTL block running at high clock frequency to be as a bridge between them to take the interrupt from your custom peripheral and send to NIOS, once the NIOS execute the interrupt and writes to the register the RTL block de-assert the interrupt as it is running in a high clock frequency.

You can also check the VIC Victor Interrupt controller IP in Qsys.

Regards,

 

0 Kudos
Reply