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)
committerwhitequark <whitequark@whitequark.org>
Wed, 8 Apr 2020 14:08:35 +0000 (14:08 +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):