From 02d804feab865c02c230f18f69ffc2a108e8f90e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 19 Oct 2015 19:18:17 +0800 Subject: [PATCH] sim: accept iterables as generator list --- migen/sim/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migen/sim/core.py b/migen/sim/core.py index 4c30c39a6..b036dbe2c 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]