back.pysim: fix behavior of initial cycle for sync processes.

The current behavior was introduced in 65702719, which was a wrong
fix for an issue that was actually fixed in 12e04e4e. This commit
effectively reverts 65702719 and 1782b841.
This commit is contained in:
whitequark 2019-01-22 17:51:44 +00:00
parent 1782b841b2
commit 7b25665fde
3 changed files with 4 additions and 7 deletions

View file

@ -72,9 +72,9 @@ class FIFOInterface:
def read(self):
"""Read method for simulation."""
assert (yield self.readable)
yield self.re.eq(1)
yield
assert (yield self.readable)
value = (yield self.dout)
yield self.re.eq(0)
return value