actorlib/spi/DMAController: export length/storage/trigger

This commit is contained in:
Sebastien Bourdeauducq 2013-07-13 17:13:15 +02:00
parent 6595b9a111
commit 65a0b12812
1 changed files with 5 additions and 0 deletions

View File

@ -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]