From: Sebastien Bourdeauducq Date: Mon, 19 Oct 2015 11:21:20 +0000 (+0800) Subject: sim: generators are also iterables... X-Git-Tag: 24jan2021_ls180~2099^2~3^2~13 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f89900b160f9ec35f975a502abd592e6c57043d;p=litex.git sim: generators are also iterables... --- diff --git a/migen/sim/core.py b/migen/sim/core.py index b036dbe2..8ad69913 100644 --- a/migen/sim/core.py +++ b/migen/sim/core.py @@ -211,7 +211,8 @@ class Simulator: generators = {"sys": generators} self.generators = dict() for k, v in generators.items(): - if isinstance(v, collections.Iterable): + if (isinstance(v, collections.Iterable) + and not isinstance(v, collections.Generator)): self.generators[k] = list(v) else: self.generators[k] = [v]