X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/raggedstone/blobdiff_plain/377c02420489dd18db3ce053a075d7eca4ae799b..a10e578285a0d47f60c93f5dc47762446f6e1061:/dhwk/source/INTERRUPT.vhd?ds=sidebyside diff --git a/dhwk/source/INTERRUPT.vhd b/dhwk/source/INTERRUPT.vhd index 96ab264..cba3935 100644 --- a/dhwk/source/INTERRUPT.vhd +++ b/dhwk/source/INTERRUPT.vhd @@ -59,8 +59,8 @@ begin begin if (PCI_CLOCK'event and PCI_CLOCK ='1') then + -- THIS IS BROKEN (it cycles the interrupt) SIG_TAST_Q <= not (TAST_SETn and SIG_TAST_Qn); - SIG_TAST_Qn <= not (TAST_RESn and SIG_TAST_Q); end if; @@ -110,8 +110,9 @@ begin if(RESET = '1') then REG <= "00000000"; - elsif(SIG_TAST_Q = '1') then - REG <= "00000000" or SET; + -- elsif(SIG_TAST_Q = '1') then + -- REG <= "00000000" or SET; + elsif (TRDYn = '0' AND READ_XX5_4 = '1') then REG <= (REG AND NOT INT_RES) OR SET; @@ -121,8 +122,8 @@ begin end if; end process; - SIG_PROPAGATE_INT <= SIG_TAST_Q - OR (REG(0) AND INT_MASKE(0)) + SIG_PROPAGATE_INT <= + (REG(0) AND INT_MASKE(0)) OR (REG(1) AND INT_MASKE(1)) OR (REG(2) AND INT_MASKE(2)) OR (REG(3) AND INT_MASKE(3))