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.
This commit is contained in:
Florent Kermarrec 2022-04-15 09:15:31 +02:00
parent f1acdf4c17
commit d1c480d0e8
1 changed files with 1 additions and 0 deletions

View File

@ -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