back.pysim: fix an off-by-1 in add_sync_process().
This commit is contained in:
parent
34b81d0b87
commit
65702719e8
|
@ -342,10 +342,11 @@ class Simulator:
|
|||
try:
|
||||
result = None
|
||||
while True:
|
||||
self._process_loc[sync_process] = self._name_process(process)
|
||||
result = process.send(result)
|
||||
if result is None:
|
||||
result = Tick(domain)
|
||||
self._process_loc[sync_process] = self._name_process(process)
|
||||
result = process.send((yield result))
|
||||
result = yield result
|
||||
except StopIteration:
|
||||
pass
|
||||
sync_process = sync_process()
|
||||
|
|
Loading…
Reference in a new issue