Skip to content

Commit

Permalink
VCD: handle vars in root scope
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasKl committed Jul 7, 2023
1 parent 2e5885d commit 06858c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wal/trace/vcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ def parse(self, vcddata):
width = tokens[i + 2]
id = tokens[i + 3]
name = tokens[i + 4]
fullname = '.'.join(scope) + '.' + name
# only append scope. if not in root scope
if scope:
fullname = '.'.join(scope) + '.' + name
else:
fullname = name

if not self.keep_signals or (fullname in self.keep_signals):
self.all_ids.add(id)
Expand Down

0 comments on commit 06858c6

Please sign in to comment.