From d2b2c9b06a3d8072a0705fd8bd38393294c8c4da Mon Sep 17 00:00:00 2001 From: meta Date: Thu, 18 Apr 2024 18:06:55 -0500 Subject: [PATCH] back.verilog, back.rtlil: map path elements to str --- amaranth/back/rtlil.py | 2 +- amaranth/back/verilog.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/amaranth/back/rtlil.py b/amaranth/back/rtlil.py index 7321eed13..8c6ff22c3 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 c29ddcc52..6aba92982 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)