Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

Interrupt detection

Altera_Forum
Honored Contributor II
1,188 Views

Is it right to do so? 

if (rising_edge(CLK)) then busy1 <= BUSY; busy2 <= busy1; if (busy1 = '1' and busy2 = '0') then int <= '1'; else int <= '0'; end if; end if;  

I thought to do (busy1 xor busy2) but this way I don't know on what edge was the interrupt - falling or rising.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
274 Views

Looks fine to me. You're looking for a rising edge on BUSY... 

 

Cheers, 

Alex
0 Kudos
Reply