From: whitequark Date: Tue, 7 Jul 2020 04:19:05 +0000 (+0000) Subject: back.pysim: simplify. NFC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e12a19fce01604050b63551af2e89ae83d692bc1;p=nmigen.git back.pysim: simplify. NFC. --- 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