From 560bb007cc3c7e5921ac353311dddb49f5da180e Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Sun, 6 Jan 2019 00:10:37 +0000 Subject: [PATCH] Give the top level scope a name to fix VCD hierarchy. --- nmigen/back/pysim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index a1e43a5..fa90461 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -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: -- 2.30.2