From: whitequark Date: Fri, 14 Dec 2018 18:53:21 +0000 (+0000) Subject: back.pysim: squash one level of hierarchy. X-Git-Tag: working~244 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe5fb34fae3b8804534148668fad56193654102a;p=nmigen.git back.pysim: squash one level of hierarchy. There's really no point in the "top" node. --- diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index fb234b5..47d84fa 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -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))