back.pysim: squash one level of hierarchy.
authorwhitequark <whitequark@whitequark.org>
Fri, 14 Dec 2018 18:53:21 +0000 (18:53 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 14 Dec 2018 18:53:21 +0000 (18:53 +0000)
There's really no point in the "top" node.

nmigen/back/pysim.py

index fb234b511c59a3d2f30e38c962f0bf7c0ed67775..47d84fae640ec8000256a81856cd7c5276da5559 100644 (file)
@@ -295,7 +295,7 @@ class Simulator:
             self._domain_signals[domain] = ValueSet()
 
         hierarchy = {}
-        def add_fragment(fragment, scope=("top",)):
+        def add_fragment(fragment, scope=()):
             hierarchy[fragment] = scope
             for subfragment, name in fragment.subfragments:
                 add_fragment(subfragment, (*scope, name))