mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
sim/proxy: support lists
This commit is contained in:
parent
f3ae22f488
commit
d3c6b8d16f
1 changed files with 2 additions and 0 deletions
|
@ -148,6 +148,8 @@ class Proxy:
|
||||||
item = getattr(self._obj, name)
|
item = getattr(self._obj, name)
|
||||||
if isinstance(item, Signal):
|
if isinstance(item, Signal):
|
||||||
return self._sim.rd(item)
|
return self._sim.rd(item)
|
||||||
|
elif isinstance(item, list):
|
||||||
|
return [Proxy(self._sim, si) for si in item]
|
||||||
else:
|
else:
|
||||||
return Proxy(self._sim, item)
|
return Proxy(self._sim, item)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue