Give the top level scope a name to fix VCD hierarchy.
authorAdam Greig <adam@adamgreig.com>
Sun, 6 Jan 2019 00:10:37 +0000 (00:10 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 6 Jan 2019 00:10:37 +0000 (00:10 +0000)
nmigen/back/pysim.py

index a1e43a5f8a4c5a873399891ae253b092bd7962f5..fa90461d92087eb708f8a7e182ef3adb3ff55657 100644 (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: