Commit 9842da18 authored by Sebastien Bourdeauducq's avatar Sebastien Bourdeauducq
Browse files

fhdl/namer: deterministic naming of signals with name_override

parent 8a514e9b
......@@ -217,8 +217,8 @@ def build_namespace(signals, reserved_keywords=set()):
pnd = _build_pnd(signals)
ns = Namespace(pnd, reserved_keywords)
# register signals with name_override
for signal in signals:
if signal.name_override is not None:
swno = {signal for signal in signals if signal.name_override is not None}
for signal in sorted(swno, key=lambda x: x.duid):
ns.get_name(signal)
return ns
......
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