Give the top level scope a name to fix VCD hierarchy.

This commit is contained in:
Adam Greig 2019-01-06 00:10:37 +00:00 committed by whitequark
parent a2b04d71d0
commit 560bb007cc

View file

@ -448,7 +448,7 @@ class Simulator:
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: