Skip to content

Commit

Permalink
back.verilog, back.rtlil: map path elements to str
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenform authored and whitequark committed Apr 19, 2024
1 parent dde8334 commit d2b2c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amaranth/back/rtlil.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion amaranth/back/verilog.py
Expand Up @@ -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)
Expand Down

0 comments on commit d2b2c9b

Please sign in to comment.