back.pysim: simplify. NFC.
authorwhitequark <whitequark@whitequark.org>
Tue, 7 Jul 2020 04:19:05 +0000 (04:19 +0000)
committerwhitequark <whitequark@whitequark.org>
Tue, 7 Jul 2020 04:19:05 +0000 (04:19 +0000)
nmigen/back/pysim.py

index 83a8fb002869acc83ff55e2ef7886d0cab27837f..7c426c3ef24aa23818cdcacb2801511204fe2639 100644 (file)
@@ -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