From b00581616e310185902b15b9aefac39f39c7692a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 11 Dec 2011 01:10:37 +0100 Subject: [PATCH] convtools: insert reset on variables --- migen/fhdl/convtools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/migen/fhdl/convtools.py b/migen/fhdl/convtools.py index f9798b5d4..a8f30361a 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)