fhdl/verilog/_printinit: initialize undriven Special inputs (bug reported by Florent...
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 11 Apr 2013 16:55:49 +0000 (18:55 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 11 Apr 2013 16:55:49 +0000 (18:55 +0200)
migen/fhdl/verilog.py

index 30c309b1aad3844ab5046d2311edbfb73c13b6fc..a5ef01dd184911bfcea3cdef9789fe2755cab776 100644 (file)
@@ -244,7 +244,7 @@ def _printspecials(overrides, specials, ns):
 
 def _printinit(f, ios, ns):
        r = ""
-       signals = list_signals(f) \
+       signals = (list_signals(f) | list_special_ios(f, True, False, False)) \
                - ios \
                - list_targets(f) \
                - list_special_ios(f, False, True, False)