actorlib/spi/DMAController: use EventSourceProcess
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 4 Sep 2013 15:29:42 +0000 (17:29 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 4 Sep 2013 15:29:42 +0000 (17:29 +0200)
migen/actorlib/spi.py

index 10f9190b336a11f13dea0399a7be763d386935ca..00fae5ff63bb18b9688658e4d09c4a0af354ee56 100644 (file)
@@ -127,14 +127,9 @@ class _DMAController(Module):
                self.generate_irq = generate_irq
                if generate_irq:
                        self.submodules.ev = EventManager()
-                       self.ev.done = EventSourcePulse()
+                       self.ev.done = EventSourceProcess()
                        self.ev.finalize()
-
-                       r_busy_d = Signal()
-
-                       self.sync += r_busy_d.eq(self.r_busy.status)
-                       self.comb += self.ev.done.trigger.eq(~self.r_busy.status & r_busy_d)
-
+                       self.comb += self.ev.done.trigger.eq(self.r_busy.status)
 
        def get_csrs(self):
                csrs = self.generator.get_csrs() + [self.r_busy]