From: whitequark Date: Fri, 14 Dec 2018 13:43:25 +0000 (+0000) Subject: back.pysim: throw exceptions back at processes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d97f174cfba15bb67ed5cad0b4ec8a4befa630d2;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: