convtools: insert reset on variables
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 11 Dec 2011 00:10:37 +0000 (01:10 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 11 Dec 2011 00:10:37 +0000 (01:10 +0100)
migen/fhdl/convtools.py

index f9798b5d44d2d450616f1f6a8ca68145912fa688..a8f30361a105374c94b56586d1369df815b7765a 100644 (file)
@@ -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)