actorlib/spi/DMAController: export length/storage/trigger
This commit is contained in:
parent
6595b9a111
commit
65a0b12812
|
@ -146,6 +146,11 @@ class _DMAController(Module):
|
||||||
self.generator = SingleGenerator(layout, mode)
|
self.generator = SingleGenerator(layout, mode)
|
||||||
self.r_busy = CSRStatus()
|
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):
|
def get_csrs(self):
|
||||||
return self.generator.get_csrs() + [self.r_busy]
|
return self.generator.get_csrs() + [self.r_busy]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue