back.pysim: Clear pending updates after they are effected
authorStuart Olsen <stuart@sj-olsen.com>
Tue, 7 Apr 2020 11:17:14 +0000 (04:17 -0700)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 13:24:41 +0000 (13:24 +0000)
nmigen/back/pysim.py

index dfe2ab565d099c27dfc1e5d22a45b96c7fc6d7a8..1ea631c56b880c24dc33aebf4e3839a12e0698cc 100644 (file)
@@ -251,6 +251,7 @@ class _SimulatorState:
                 if self.waveform_writer is not None:
                     self.waveform_writer.update(self.timestamp,
                         signal_state.signal, signal_state.curr)
+        self.pending.clear()
         return awoken_any
 
     def advance(self):