Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
9842da18
Commit
9842da18
authored
8 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
fhdl/namer: deterministic naming of signals with name_override
parent
8a514e9b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
migen/fhdl/namer.py
migen/fhdl/namer.py
+3
-3
No files found.
migen/fhdl/namer.py
View file @
9842da18
...
@@ -217,8 +217,8 @@ def build_namespace(signals, reserved_keywords=set()):
...
@@ -217,8 +217,8 @@ def build_namespace(signals, reserved_keywords=set()):
pnd
=
_build_pnd
(
signals
)
pnd
=
_build_pnd
(
signals
)
ns
=
Namespace
(
pnd
,
reserved_keywords
)
ns
=
Namespace
(
pnd
,
reserved_keywords
)
# register signals with name_override
# register signals with name_override
for
signal
in
signals
:
swno
=
{
signal
for
signal
in
signals
if
signal
.
name_override
is
not
None
}
if
signal
.
name_override
is
not
None
:
for
signal
in
sorted
(
swno
,
key
=
lambda
x
:
x
.
duid
)
:
ns
.
get_name
(
signal
)
ns
.
get_name
(
signal
)
return
ns
return
ns
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment