From: Sebastien Bourdeauducq Date: Thu, 17 Sep 2015 07:20:27 +0000 (+0800) Subject: minor bugfixes X-Git-Tag: 24jan2021_ls180~2099^2~3^2~82 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2109f8f81ba16bc273a05d204ce1eb000b80d14;p=litex.git minor bugfixes --- diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 07de92dd..e3faae51 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -432,7 +432,7 @@ class _Assign(_Statement): def _check_statement(s): - if isinstance(s, Iterable): + if isinstance(s, _collections.Iterable): return all(_check_statement(ss) for ss in s) else: return isinstance(s, _Statement) diff --git a/migen/sim.py b/migen/sim.py index 7f2035d1..cd8d8d12 100644 --- a/migen/sim.py +++ b/migen/sim.py @@ -80,7 +80,7 @@ class Evaluator: try: return self.signal_values[node] except KeyError: - return node.reset + return node.reset.value elif isinstance(node, _Operator): operands = [self.eval(o) for o in node.operands] if node.op == "-":