mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
prevent unnecesarily adding _ to signal names
--HG-- branch : 0.9-dev
This commit is contained in:
parent
885a741889
commit
bad0346b29
@ -110,6 +110,7 @@ def _analyzeSigs(hierarchy, hdl='Verilog'):
|
|||||||
if isinstance(s, _SliceSignal):
|
if isinstance(s, _SliceSignal):
|
||||||
continue
|
continue
|
||||||
s._name = _makeName(n, prefixes)
|
s._name = _makeName(n, prefixes)
|
||||||
|
if '.' in n:
|
||||||
while s._name in sigdict:
|
while s._name in sigdict:
|
||||||
s._name += '_'
|
s._name += '_'
|
||||||
if not s._nrbits:
|
if not s._nrbits:
|
||||||
@ -123,6 +124,7 @@ def _analyzeSigs(hierarchy, hdl='Verilog'):
|
|||||||
if m.name is not None:
|
if m.name is not None:
|
||||||
continue
|
continue
|
||||||
m.name = _makeName(n, prefixes)
|
m.name = _makeName(n, prefixes)
|
||||||
|
if '.' in n:
|
||||||
while m.name in memdict:
|
while m.name in memdict:
|
||||||
m.name += '_'
|
m.name += '_'
|
||||||
memlist.append(m)
|
memlist.append(m)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user