From d97f174cfba15bb67ed5cad0b4ec8a4befa630d2 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 14 Dec 2018 13:43:25 +0000 Subject: [PATCH] back.pysim: throw exceptions back at processes. --- nmigen/back/pysim.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.30.2