minor bugfixes
authorSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 17 Sep 2015 07:20:27 +0000 (15:20 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 17 Sep 2015 07:20:27 +0000 (15:20 +0800)
migen/fhdl/structure.py
migen/sim.py

index 07de92dd426f80178ea4b0f1dbb85b917de63812..e3faae51d77ddd2e4cb2026bc61e0d4ece9fd761 100644 (file)
@@ -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)
index 7f2035d1575a88012b901a7d0ec2abcf79ff7959..cd8d8d122c51ab54fae16ac45caa8f792c9ae203 100644 (file)
@@ -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 == "-":