projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d5878a
)
fhdl.ast.Signal: assign an internal name if tracer fails.
author
whitequark
<whitequark@whitequark.org>
Wed, 12 Dec 2018 10:08:56 +0000
(10:08 +0000)
committer
whitequark
<whitequark@whitequark.org>
Wed, 12 Dec 2018 10:08:56 +0000
(10:08 +0000)
nmigen/fhdl/ast.py
patch
|
blob
|
history
diff --git
a/nmigen/fhdl/ast.py
b/nmigen/fhdl/ast.py
index 198b5c4b522865407c34e22dcb957899ee3918b1..b78021f89d4b5d6db32200d8e41a67400cb6e6a3 100644
(file)
--- a/
nmigen/fhdl/ast.py
+++ b/
nmigen/fhdl/ast.py
@@
-505,7
+505,10
@@
class Signal(Value, DUID):
super().__init__()
if name is None:
- name = tracer.get_var_name()
+ try:
+ name = tracer.get_var_name()
+ except tracer.NameNotFound:
+ name = "$signal"
self.name = name
if isinstance(bits_sign, int):