mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
added check for double underscore in VHDL names
This commit is contained in:
parent
286b699032
commit
43e4190a6a
@ -41,6 +41,9 @@ def _nameValid(name):
|
||||
if '-' in name:
|
||||
warnings.warn("VHDL variable names cannot contain '-': %s" % (name))
|
||||
|
||||
if '__' in name:
|
||||
warnings.warn("VHDL variable names cannot contain double underscores '__': %s" % (name))
|
||||
|
||||
if name.lower() in _usedNames:
|
||||
warnings.warn("Previously used name being reused: %s" % (name))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user