1
0
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:
Josy Boelen 2018-12-05 19:18:42 +01:00
parent 286b699032
commit 43e4190a6a

View File

@ -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))