back.pysim: squash one level of hierarchy.

There's really no point in the "top" node.
This commit is contained in:
whitequark 2018-12-14 18:53:21 +00:00
parent 70ebc6f2c1
commit fe5fb34fae

View 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))