Skip to content

Commit

Permalink
sim.cxxsim: reset newly added Python-only signals (#439).
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Sep 29, 2020
1 parent 070036f commit 67e175d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nmigen/sim/cxxsim.py
Expand Up @@ -120,6 +120,7 @@ def _add_rtl_signal(self, signal):
def _add_sim_signal(self, signal):
signal_parts = [cxxrtl_object.create(cxxrtl_type.WIRE, len(signal))]
signal_state = _CxxSignalState(signal, signal_parts, owned=True)
signal_state.reset()
return self._add_signal(signal, signal_state)

def get_signal(self, signal):
Expand Down

0 comments on commit 67e175d

Please sign in to comment.