From 992d496396709e1b2595bf4d6da0599b27c4c22f Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 14 Dec 2018 17:05:11 +0000 Subject: [PATCH] back.pysim: in simulator sync processes, start by waiting for a tick. This matches Migen behavior and also makes more sense. --- nmigen/back/pysim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index d09c981..ba4f0bc 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -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) -- 2.30.2