Skip to content

Commit

Permalink
Give the top level scope a name to fix VCD hierarchy.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgreig authored and whitequark committed Jan 6, 2019
1 parent a2b04d7 commit 560bb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmigen/back/pysim.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def add_fragment(fragment, scope=()):
add_fragment(subfragment, (*scope, "#{}".format(index)))
else:
add_fragment(subfragment, (*scope, name))
add_fragment(root_fragment)
add_fragment(root_fragment, scope=("top",))

def add_signal(signal):
if signal not in self._signals:
Expand Down

0 comments on commit 560bb00

Please sign in to comment.