Skip to content

Commit

Permalink
Merge pull request #119 from josyb/GroupMemSignalsinVCD
Browse files Browse the repository at this point in the history
[enhancement] added scope-module// upscope around mem signals in.vcd
  • Loading branch information
jandecaluwe committed Aug 7, 2015
2 parents fdc453f + 3c8733b commit 97f9b34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions myhdl/_traceSignals.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def _writeVcdSigs(f, hierarchy, tracelists):
# all memories are flattened and renamed.
if tracelists:
for n in memdict.keys():
print("$scope module {} $end" .format(n), file=f)
memindex = 0
for s in memdict[n].mem:
sval = _getSval(s)
Expand All @@ -197,6 +198,7 @@ def _writeVcdSigs(f, hierarchy, tracelists):
else:
print("$var real 1 %s %s(%i) $end" % (s._code, n, memindex), file=f)
memindex += 1
print("$upscope $end", file=f)
for i in range(curlevel):
print("$upscope $end", file=f)
print(file=f)
Expand Down

0 comments on commit 97f9b34

Please sign in to comment.