From: Sebastien Bourdeauducq Date: Sat, 13 Jul 2013 15:13:15 +0000 (+0200) Subject: actorlib/spi/DMAController: export length/storage/trigger X-Git-Tag: 24jan2021_ls180~2099^2~526 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65a0b128123eac51d78a259bc64413b071602d4c;p=litex.git actorlib/spi/DMAController: export length/storage/trigger --- diff --git a/migen/actorlib/spi.py b/migen/actorlib/spi.py index 1f9eeb3c..8815f92d 100644 --- a/migen/actorlib/spi.py +++ b/migen/actorlib/spi.py @@ -146,6 +146,11 @@ class _DMAController(Module): self.generator = SingleGenerator(layout, mode) self.r_busy = CSRStatus() + self.length = self.generator.r_length.storage + self.base = self.generator.r_base.storage + if hasattr(self.generator, "trigger"): + self.trigger = self.generator.trigger + def get_csrs(self): return self.generator.get_csrs() + [self.r_busy]