From: Sebastien Bourdeauducq Date: Wed, 4 Sep 2013 15:29:42 +0000 (+0200) Subject: actorlib/spi/DMAController: use EventSourceProcess X-Git-Tag: 24jan2021_ls180~2099^2~463 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=523565be638882eaed7dc277f9f46a3a3d06ad0a;p=litex.git actorlib/spi/DMAController: use EventSourceProcess --- 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]