You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "repro.py", line 26, in <module>
sim.run()
File "/home/jf/src/nmigen/nmigen/sim/_core.py", line 202, in run
while self.advance():
File "/home/jf/src/nmigen/nmigen/sim/_core.py", line 191, in advance
self._real_step()
File "/home/jf/src/nmigen/nmigen/sim/cxxsim.py", line 124, in _real_step
process.run()
File "/home/jf/src/nmigen/nmigen/sim/_pycoro.py", line 121, in run
self.coroutine.throw(exn)
File "/home/jf/src/nmigen/nmigen/sim/_pycoro.py", line 62, in run
command = self.coroutine.send(response)
File "/home/jf/src/nmigen/nmigen/sim/_core.py", line 102, in wrapper
yield from process()
File "repro.py", line 21, in process
assert (yield o) == 1
AssertionError
The text was updated successfully, but these errors were encountered:
Okay, I figured out what happens here. There are two bugs. The first was finishing delta cycles too early, fixed in 7ca1477. The second one is that there's actually not enough information to trigger the process that's waiting on Tick because clk is single-buffered. This will require some rethinking of the cxxrtl interface.
(with the cxxsim branch checked out at 060ad25)
Repro:
Output:
The text was updated successfully, but these errors were encountered: