projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6eb97e
)
actorlib/spi/DMAController: use EventSourceProcess
author
Sebastien Bourdeauducq
<sebastien@milkymist.org>
Wed, 4 Sep 2013 15:29:42 +0000
(17:29 +0200)
committer
Sebastien Bourdeauducq
<sebastien@milkymist.org>
Wed, 4 Sep 2013 15:29:42 +0000
(17:29 +0200)
migen/actorlib/spi.py
patch
|
blob
|
history
diff --git
a/migen/actorlib/spi.py
b/migen/actorlib/spi.py
index 10f9190b336a11f13dea0399a7be763d386935ca..00fae5ff63bb18b9688658e4d09c4a0af354ee56 100644
(file)
--- 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 = EventSourceP
ulse
()
+ self.ev.done = EventSourceP
rocess
()
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]