mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
Merge pull request #119 from josyb/GroupMemSignalsinVCD
[enhancement] added scope-module// upscope around mem signals in.vcd
This commit is contained in:
commit
97f9b3479b
@ -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)
|
||||
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user