Use new verilog.convert API
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 20 Jan 2012 22:00:11 +0000 (23:00 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 20 Jan 2012 22:00:11 +0000 (23:00 +0100)
top.py

diff --git a/top.py b/top.py
index be0bba67aa0fee2fbe72024e119fba42a09a4660..d865a3c50a8d134d4ac85e96d24d95cc0a78c6ee 100644 (file)
--- a/top.py
+++ b/top.py
@@ -24,12 +24,11 @@ def get():
        csrcon0 = csr.Interconnect(wishbone2csr0.csr, [uart0.bank.interface])
        
        frag = autofragment.from_local()
-       vns = tools.Namespace()
-       src_verilog = verilog.convert(frag,
+       src_verilog, vns = verilog.convert(frag,
                {clkfx_sys.clkin, reset0.trigger_reset},
                name="soc",
                clk_signal=clkfx_sys.clkout,
                rst_signal=reset0.sys_rst,
-               ns=vns)
+               return_ns=True)
        src_ucf = constraints.get(vns, clkfx_sys, reset0, norflash0, uart0)
        return (src_verilog, src_ucf)