]> git.zerfleddert.de Git - raggedstone/blobdiff - dhwk/source/pci/interrupt.vhd
interrupt
[raggedstone] / dhwk / source / pci / interrupt.vhd
index 1266a9ed9fd076998a8e9cbbb08218a0a0005796..a3709b6ba88f030a164af0e1e4fd55aea450e191 100644 (file)
@@ -75,7 +75,7 @@ begin
                         FF_A <= "00000000";
                         FF_B <= "00000000";
 
-                elsif (rising_edge(PCI_CLOCK)) then
+                elsif (PCI_CLOCK'event and PCI_CLOCK = '1') then
                         if (RESET = '1') then
                                 SET <= "00000000";
                                 FF_A <= "00000000";
@@ -105,7 +105,7 @@ begin
                 if (PCI_RSTn = '0') then
                         REG <= "00000000";
 
-                elsif(rising_edge(PCI_CLOCK)) then
+                elsif(PCI_CLOCK'event and PCI_CLOCK = '1') then
                         if(RESET = '1') then
                                 REG <= "00000000";
 
@@ -120,8 +120,8 @@ begin
                 end if;
         end process;
 
-        SIG_PROPAGATE_INT <=
-        (REG(0) AND INT_MASKE(0))
+        SIG_PROPAGATE_INT <= (not TAST_SETn)
+        OR (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))
@@ -132,7 +132,7 @@ begin
 
         process (PCI_CLOCK)
         begin
-                if(rising_edge(PCI_CLOCK)) then
+                if(PCI_CLOCK'event and PCI_CLOCK = '1') then
                         SIG_PROPAGATE_INT_SECOND <= not SIG_PROPAGATE_INT;
                 end if;
         end process;
Impressum, Datenschutz