From: Sebastien Bourdeauducq Date: Sun, 1 Apr 2012 15:19:53 +0000 (+0200) Subject: sim/proxy: support lists X-Git-Tag: 24jan2021_ls180~2099^2~957 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3c6b8d16f3a6f09bb7ea19c322cb9913c13fc60;p=litex.git sim/proxy: support lists --- diff --git a/migen/sim/generic.py b/migen/sim/generic.py index 12e40ed2..b0d369d9 100644 --- a/migen/sim/generic.py +++ b/migen/sim/generic.py @@ -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)