From d1c480d0e8c1e6188cccab4a0621c714376d591c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 15 Apr 2022 09:15:31 +0200 Subject: [PATCH] litescope/core: Remove duplicates from split_signals. Still allow the user to add duplicated signals, but will not error when running Litescope in --gui mode. --- litescope/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litescope/core.py b/litescope/core.py index 25cdb85..c43a2e6 100644 --- a/litescope/core.py +++ b/litescope/core.py @@ -301,6 +301,7 @@ class LiteScopeAnalyzer(Module, AutoCSR): split_signals.append(s.state) else: split_signals.append(s) + split_signals = list(dict.fromkeys(split_signals)) # Remove duplicates. new_groups[n] = split_signals return new_groups