From: Sebastien Bourdeauducq Date: Sun, 11 Dec 2011 00:10:37 +0000 (+0100) Subject: convtools: insert reset on variables X-Git-Tag: 24jan2021_ls180~2099^2~1151 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b00581616e310185902b15b9aefac39f39c7692a;p=litex.git convtools: insert reset on variables --- diff --git a/migen/fhdl/convtools.py b/migen/fhdl/convtools.py index f9798b5d..a8f30361 100644 --- a/migen/fhdl/convtools.py +++ b/migen/fhdl/convtools.py @@ -107,6 +107,5 @@ def InsertReset(rst, sl): targets = ListTargets(sl) resetcode = [] for t in targets: - if not t.variable: - resetcode.append(Assign(t, t.reset)) - return If(rst, resetcode, sl) \ No newline at end of file + resetcode.append(Assign(t, t.reset)) + return If(rst, resetcode, sl)