Skip to content

Commit

Permalink
fhdl/verilog: fix variable name conflict
Browse files Browse the repository at this point in the history
sbourdeauducq committed Mar 16, 2016
1 parent 4df34c7 commit fa3537d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migen/fhdl/verilog.py
Original file line number Diff line number Diff line change
@@ -300,9 +300,9 @@ def convert(f, ios=None, name="top",

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
io_name = io.backtrace[-1][0]
if io_name:
io.name_override = io_name
ns = build_namespace(list_signals(f) \
| list_special_ios(f, True, True, True) \
| ios, _reserved_keywords)

0 comments on commit fa3537d

Please sign in to comment.