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-Tag: working~246 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=120d8171230883e8afb13eaf9e25c3985b9386b8;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):