sim/proxy: support lists
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 1 Apr 2012 15:19:53 +0000 (17:19 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 1 Apr 2012 15:19:53 +0000 (17:19 +0200)
migen/sim/generic.py

index 12e40ed2b9b635967425d0f7d63e18c584531554..b0d369d9afbe1ca359ae3b883b287098788a4516 100644 (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)