Include fragment pads in pre-naming dictionary
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 20 Jan 2012 21:59:40 +0000 (22:59 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 20 Jan 2012 21:59:40 +0000 (22:59 +0100)
migen/fhdl/verilog.py

index 5f343cfebff94ffa36461ab9d487862b32f9d4a3..0d7f3d4ea110890f7cb394f1ec043efa59115954 100644 (file)
@@ -213,9 +213,10 @@ def convert(f, ios=set(), name="top", clk_signal=None, rst_signal=None, return_n
        if rst_signal is None:
                rst_signal = Signal(name_override="sys_rst")
                ios.add(rst_signal)
+       ios |= f.pads
+
        ns = build_namespace(list_signals(f) | list_inst_ios(f, True, True) | ios)
 
-       ios |= f.pads
        
        r = "/* Machine-generated using Migen */\n"
        r += _printheader(f, ios, name, ns)