software/driver/analyzer: fix groups build

This commit is contained in:
Florent Kermarrec 2017-07-24 22:57:19 +02:00
parent 8d87992b95
commit d4d63d7474
1 changed files with 2 additions and 2 deletions

View File

@ -45,13 +45,13 @@ class LiteScopeAnalyzerDriver:
if self.name == key[:len(self.name)]: if self.name == key[:len(self.name)]:
key = key.replace(self.name + "_", "") key = key.replace(self.name + "_", "")
setattr(self, key, value) setattr(self, key, value)
value = 1
for signals in self.layouts.values(): for signals in self.layouts.values():
value = 1
for name, length in signals: for name, length in signals:
setattr(self, name + "_o", value) setattr(self, name + "_o", value)
value = value*(2**length) value = value*(2**length)
value = 0
for signals in self.layouts.values(): for signals in self.layouts.values():
value = 0
for name, length in signals: for name, length in signals:
setattr(self, name + "_m", (2**length-1) << value) setattr(self, name + "_m", (2**length-1) << value)
value += length value += length