back.pysim: throw exceptions back at processes.
authorwhitequark <whitequark@whitequark.org>
Fri, 14 Dec 2018 13:43:25 +0000 (13:43 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 14 Dec 2018 13:43:25 +0000 (13:43 +0000)
nmigen/back/pysim.py

index c7e3f0fa2fe95c9f7ef224a4124013dc2146784b..53cb91e27287596acba89124841c65d9af1e8321 100644 (file)
@@ -489,6 +489,9 @@ class Simulator:
             self._processes.remove(process)
             self._passive.discard(process)
 
+        except Exception as e:
+            process.throw(e)
+
     def step(self, run_passive=False):
         deadline = None
         if self._wait_deadline: