From 34b86e3aa055a7d35657c05ef05b7eb8b5f1f038 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 14 Dec 2018 17:25:48 +0000 Subject: [PATCH] back.pysim: undriven sync signals should return to previous value. --- nmigen/back/pysim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index ba4f0bc..ca01431 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -345,6 +345,8 @@ class Simulator: statements = [] for signal in fragment.iter_comb(): statements.append(signal.eq(signal.reset)) + for domain, signal in fragment.iter_sync(): + statements.append(signal.eq(signal)) statements += fragment.statements def add_funclet(signal, funclet): -- 2.30.2