back.pysim: in simulator sync processes, start by waiting for a tick.

This matches Migen behavior and also makes more sense.
This commit is contained in:
whitequark 2018-12-14 17:05:11 +00:00
parent e230383aac
commit 4f5b4a9bf4

View file

@ -241,7 +241,7 @@ class Simulator:
process = self._check_process(process)
def sync_process():
try:
result = process.send(None)
result = None
while True:
if result is None:
result = Tick(domain)