convtools: insert reset on variables

This commit is contained in:
Sebastien Bourdeauducq 2011-12-11 01:10:37 +01:00
parent d3127fd5d8
commit b00581616e

View file

@ -107,6 +107,5 @@ def InsertReset(rst, sl):
targets = ListTargets(sl) targets = ListTargets(sl)
resetcode = [] resetcode = []
for t in targets: for t in targets:
if not t.variable:
resetcode.append(Assign(t, t.reset)) resetcode.append(Assign(t, t.reset))
return If(rst, resetcode, sl) return If(rst, resetcode, sl)