From 625c55a3b899a7888dca4e31d9672e70dec9d6a0 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