From e12a19fce01604050b63551af2e89ae83d692bc1 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 7 Jul 2020 04:19:05 +0000 Subject: [PATCH] back.pysim: simplify. NFC. --- nmigen/back/pysim.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index 83a8fb0..7c426c3 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -203,9 +203,7 @@ class _SignalState: if self.curr == self.next: return False self.curr = self.next - return True - def wakeup(self): awoken_any = False for process, trigger in self.waiters.items(): if trigger is None or trigger == self.curr: @@ -254,8 +252,7 @@ class _SimulatorState: converged = True for signal_state in self.pending: if signal_state.commit(): - if signal_state.wakeup(): - converged = False + converged = False self.pending.clear() return converged -- 2.30.2