From 65a0b128123eac51d78a259bc64413b071602d4c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 13 Jul 2013 17:13:15 +0200 Subject: [PATCH] actorlib/spi/DMAController: export length/storage/trigger --- migen/actorlib/spi.py | 5 +++++ 1 file changed, 5 insertions(+) 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] -- 2.30.2