From d4d63d747456d3c304821f3c07bc8840f5a08487 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 24 Jul 2017 22:57:19 +0200 Subject: [PATCH] software/driver/analyzer: fix groups build --- litescope/software/driver/analyzer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litescope/software/driver/analyzer.py b/litescope/software/driver/analyzer.py index e799460..15fd71e 100644 --- a/litescope/software/driver/analyzer.py +++ b/litescope/software/driver/analyzer.py @@ -45,13 +45,13 @@ class LiteScopeAnalyzerDriver: if self.name == key[:len(self.name)]: key = key.replace(self.name + "_", "") setattr(self, key, value) - value = 1 for signals in self.layouts.values(): + value = 1 for name, length in signals: setattr(self, name + "_o", value) value = value*(2**length) - value = 0 for signals in self.layouts.values(): + value = 0 for name, length in signals: setattr(self, name + "_m", (2**length-1) << value) value += length