Commit 4df34c7b authored by Sebastien Bourdeauducq's avatar Sebastien Bourdeauducq
Browse files

fhdl/verilog: simpler names for IOs. Closes #40

parent 9842da18
......@@ -298,6 +298,11 @@ def convert(f, ios=None, name="top",
fs, lowered_specials = lower_specials(special_overrides, f.specials)
f += lower_basics(fs)
for io in sorted(ios, key=lambda x: x.duid):
if io.name_override is None:
name = io.backtrace[-1][0]
if name:
io.name_override = name
ns = build_namespace(list_signals(f) \
| list_special_ios(f, True, True, True) \
| ios, _reserved_keywords)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment