Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
write next state to vcd instead of curr state, since state is written…
… just prior to commit

Fixes amaranth-lang#429
  • Loading branch information
programmerjake committed Jul 13, 2020
1 parent 30e2f91 commit abe24c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmigen/sim/pysim.py
Expand Up @@ -348,7 +348,7 @@ def _real_step(self):
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()
Expand Down

0 comments on commit abe24c1

Please sign in to comment.