mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl: allow a namespace to be specified for Verilog conversion
This commit is contained in:
parent
eee6980a36
commit
a72faaecdd
1 changed files with 4 additions and 4 deletions
|
@ -115,12 +115,12 @@ def _printinstances(ns, i, clk, rst):
|
|||
r += ");\n\n"
|
||||
return r
|
||||
|
||||
def Convert(f, ios=set(), name="top", clkname="sys_clk", rstname="sys_rst"):
|
||||
ns = Namespace()
|
||||
|
||||
def Convert(f, ios=set(), name="top", clkname="sys_clk", rstname="sys_rst", ns=None):
|
||||
if ns is None: ns = Namespace()
|
||||
|
||||
clks = Signal(name=clkname)
|
||||
rsts = Signal(name=rstname)
|
||||
|
||||
|
||||
ios |= f.pads
|
||||
|
||||
sigs = ListSignals(f)
|
||||
|
|
Loading…
Reference in a new issue