Skip to content

Commit d2b2c9b

Browse files
eigenformwhitequark
authored andcommitted
back.verilog, back.rtlil: map path elements to str
1 parent dde8334 commit d2b2c9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

amaranth/back/rtlil.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ def convert(elaboratable, name="top", platform=None, *, ports=None, emit_src=Tru
12891289
dir = _ir.PortDirection.Input
12901290
else:
12911291
dir = _ir.PortDirection.Output
1292-
ports["__".join(path)] = (value, dir)
1292+
ports["__".join(map(str, path))] = (value, dir)
12931293
elif ports is None:
12941294
raise TypeError("The `convert()` function requires a `ports=` argument")
12951295
fragment = _ir.Fragment.get(elaboratable, platform)

amaranth/back/verilog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def convert(elaboratable, name="top", platform=None, *, ports=None, emit_src=Tru
5454
dir = _ir.PortDirection.Input
5555
else:
5656
dir = _ir.PortDirection.Output
57-
ports["__".join(path)] = (value, dir)
57+
ports["__".join(map(str, path))] = (value, dir)
5858
elif ports is None:
5959
raise TypeError("The `convert()` function requires a `ports=` argument")
6060
fragment = _ir.Fragment.get(elaboratable, platform)

0 commit comments

Comments
 (0)