From 58f1d4bcb67176bb91082ff3c2065fea9a10837e Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Sun, 12 Jul 2020 19:10:01 -0700 Subject: [PATCH] sim.pysim: write the next, not curr signal value to the VCD file This is a temporary fix for #429. --- nmigen/sim/pysim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/sim/pysim.py b/nmigen/sim/pysim.py index 166e2a1..c50b742 100644 --- a/nmigen/sim/pysim.py +++ b/nmigen/sim/pysim.py @@ -349,7 +349,7 @@ class Simulator: for waveform_writer in self._waveform_writers: for signal_state in self._state.pending: waveform_writer.update(self._state.timeline.now, - signal_state.signal, signal_state.curr) + signal_state.signal, signal_state.next) # 2. commit: apply every queued signal change, waking up any waiting processes converged = self._state.commit() -- 2.30.2