fhdl: allow a namespace to be specified for Verilog conversion
This commit is contained in:
parent
eee6980a36
commit
a72faaecdd
|
@ -115,12 +115,12 @@ def _printinstances(ns, i, clk, rst):
|
||||||
r += ");\n\n"
|
r += ");\n\n"
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def Convert(f, ios=set(), name="top", clkname="sys_clk", rstname="sys_rst"):
|
def Convert(f, ios=set(), name="top", clkname="sys_clk", rstname="sys_rst", ns=None):
|
||||||
ns = Namespace()
|
if ns is None: ns = Namespace()
|
||||||
|
|
||||||
clks = Signal(name=clkname)
|
clks = Signal(name=clkname)
|
||||||
rsts = Signal(name=rstname)
|
rsts = Signal(name=rstname)
|
||||||
|
|
||||||
ios |= f.pads
|
ios |= f.pads
|
||||||
|
|
||||||
sigs = ListSignals(f)
|
sigs = ListSignals(f)
|
||||||
|
|
Loading…
Reference in New Issue