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