back.verilog, back.rtlil: map path elements to str
This commit is contained in:
parent
dde8334031
commit
d2b2c9b06a
|
@ -1289,7 +1289,7 @@ def convert(elaboratable, name="top", platform=None, *, ports=None, emit_src=Tru
|
|||
dir = _ir.PortDirection.Input
|
||||
else:
|
||||
dir = _ir.PortDirection.Output
|
||||
ports["__".join(path)] = (value, dir)
|
||||
ports["__".join(map(str, path))] = (value, dir)
|
||||
elif ports is None:
|
||||
raise TypeError("The `convert()` function requires a `ports=` argument")
|
||||
fragment = _ir.Fragment.get(elaboratable, platform)
|
||||
|
|
|
@ -54,7 +54,7 @@ def convert(elaboratable, name="top", platform=None, *, ports=None, emit_src=Tru
|
|||
dir = _ir.PortDirection.Input
|
||||
else:
|
||||
dir = _ir.PortDirection.Output
|
||||
ports["__".join(path)] = (value, dir)
|
||||
ports["__".join(map(str, path))] = (value, dir)
|
||||
elif ports is None:
|
||||
raise TypeError("The `convert()` function requires a `ports=` argument")
|
||||
fragment = _ir.Fragment.get(elaboratable, platform)
|
||||
|
|
Loading…
Reference in a new issue