mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
convtools: insert reset on variables
This commit is contained in:
parent
d3127fd5d8
commit
b00581616e
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
Loading…
Reference in a new issue