From 523565be638882eaed7dc277f9f46a3a3d06ad0a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 4 Sep 2013 17:29:42 +0200 Subject: [PATCH] actorlib/spi/DMAController: use EventSourceProcess --- migen/actorlib/spi.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/migen/actorlib/spi.py b/migen/actorlib/spi.py index 10f9190b..00fae5ff 100644 --- a/migen/actorlib/spi.py +++ b/migen/actorlib/spi.py @@ -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] -- 2.30.2