From 9db5f728f50296dd7fe5ca24023fcf7d7b63b76a Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 18 Dec 2018 04:46:36 +0000 Subject: [PATCH] back.pysim: naming. NFC. --- nmigen/back/pysim.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index 5a6b5ad..3f9f4b1 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -343,10 +343,10 @@ class Simulator: result = None while True: self._process_loc[sync_process] = self._name_process(process) - result = process.send(result) - if result is None: - result = Tick(domain) - result = yield result + cmd = process.send(result) + if cmd is None: + cmd = Tick(domain) + result = yield cmd except StopIteration: pass sync_process = sync_process() -- 2.30.2