diff --git a/amaranth/back/rtlil.py b/amaranth/back/rtlil.py index 7321eed..8c6ff22 100644 --- a/amaranth/back/rtlil.py +++ b/amaranth/back/rtlil.py @@ -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) diff --git a/amaranth/back/verilog.py b/amaranth/back/verilog.py index c29ddcc..6aba929 100644 --- a/amaranth/back/verilog.py +++ b/amaranth/back/verilog.py @@ -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)