sim/proxy: support lists

This commit is contained in:
Sebastien Bourdeauducq 2012-04-01 17:19:53 +02:00
parent f3ae22f488
commit d3c6b8d16f
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ class Proxy:
item = getattr(self._obj, name)
if isinstance(item, Signal):
return self._sim.rd(item)
elif isinstance(item, list):
return [Proxy(self._sim, si) for si in item]
else:
return Proxy(self._sim, item)