From: whitequark Date: Fri, 14 Dec 2018 17:25:48 +0000 (+0000) Subject: back.pysim: undriven sync signals should return to previous value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34b86e3aa055a7d35657c05ef05b7eb8b5f1f038;p=nmigen.git back.pysim: undriven sync signals should return to previous value. --- 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):