sim: support execution of nested statement lists
authorSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 15 Oct 2015 05:52:24 +0000 (13:52 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 15 Oct 2015 05:52:24 +0000 (13:52 +0800)
migen/sim/core.py

index 3329e8e39b890c1ce483820eed5883cfaa9141dc..c31fa0868c5c30e39c40d374d0ae3a07f52eca14 100644 (file)
@@ -193,6 +193,8 @@ class Evaluator:
                         return
                 if "default" in s.cases:
                     self.execute(s.cases["default"])
+            elif isinstance(s, list):
+                execute(s)
             else:
                 raise NotImplementedError