From: whitequark Date: Fri, 14 Dec 2018 13:43:25 +0000 (+0000) Subject: back.pysim: throw exceptions back at processes. X-Git-Tag: working~264 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=625c55a3b899a7888dca4e31d9672e70dec9d6a0;p=nmigen.git back.pysim: throw exceptions back at processes. --- diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index c7e3f0f..53cb91e 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -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: