From: Sebastien Bourdeauducq Date: Mon, 19 Oct 2015 11:18:17 +0000 (+0800) Subject: sim: accept iterables as generator list X-Git-Tag: 24jan2021_ls180~2099^2~3^2~14 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02d804feab865c02c230f18f69ffc2a108e8f90e;p=litex.git sim: accept iterables as generator list --- diff --git a/migen/sim/core.py b/migen/sim/core.py index 4c30c39a..b036dbe2 100644 --- a/migen/sim/core.py +++ b/migen/sim/core.py @@ -211,8 +211,8 @@ class Simulator: generators = {"sys": generators} self.generators = dict() for k, v in generators.items(): - if isinstance(v, list): - self.generators[k] = v + if isinstance(v, collections.Iterable): + self.generators[k] = list(v) else: self.generators[k] = [v]