diff --git a/migen/fhdl/verilog.py b/migen/fhdl/verilog.py index 4cc657b38..5d5f5896e 100644 --- a/migen/fhdl/verilog.py +++ b/migen/fhdl/verilog.py @@ -178,11 +178,7 @@ def _printheader(f, ios, name, ns): if sig in wires: r += "wire " + _printsig(ns, sig) + ";\n" else: - if isinstance(sig.reset, int): - resetexpr = " = " + _printexpr(ns, sig.reset)[0] - else: - resetexpr = "" - r += "reg " + _printsig(ns, sig) + resetexpr + ";\n" + r += "reg " + _printsig(ns, sig) + " = " + _printexpr(ns, sig.reset)[0] + ";\n" r += "\n" return r