Skip to content

Commit

Permalink
Fixed object being passed to _nameValidate
Browse files Browse the repository at this point in the history
  • Loading branch information
pkregan committed Sep 2, 2016
1 parent 0d6a5d7 commit 62e1fb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions myhdl/conversion/_toVHDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _writeModuleHeader(f, intf, needPck, lib, arch, useClauses, doc, stdLogicPor
if convertPort:
pt = "std_logic_vector"
# Check if VHDL keyword or reused name
_nameValid(s)
_nameValid(s._name)
if s._driven:
if s._read:
if not isinstance(s, _TristateSignal):
Expand Down Expand Up @@ -419,7 +419,7 @@ def _writeSigDecls(f, intf, siglist, memlist):
print("signal %s: %s%s;" % (s._name, p, r), file=f)
elif s._read:
# Check if VHDL keyword or reused name
_nameValid(s)
_nameValid(s._name)
# the original exception
# raise ToVHDLError(_error.UndrivenSignal, s._name)
# changed to a warning and a continuous assignment to a wire
Expand All @@ -440,7 +440,7 @@ def _writeSigDecls(f, intf, siglist, memlist):
if not m._driven and not m._read:
continue
# Check if VHDL keyword or reused name
_nameValid(m)
_nameValid(m.name)
r = _getRangeString(m.elObj)
p = _getTypeString(m.elObj)
t = "t_array_%s" % m.name
Expand Down

0 comments on commit 62e1fb9

Please sign in to comment.