From: Jacob Lifshay Date: Fri, 10 Jul 2020 00:21:37 +0000 (-0700) Subject: switch to using Signal.width instead of Signal.shape()[0] since Shape isn't a tuple... X-Git-Tag: div_pipeline~115 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=caceb716e9417ed8731ef08b7b260a4c077186b2;p=soc.git switch to using Signal.width instead of Signal.shape()[0] since Shape isn't a tuple anymore see https://github.com/nmigen/nmigen/pull/422 --- diff --git a/src/soc/decoder/power_fieldsn.py b/src/soc/decoder/power_fieldsn.py index 6f1b0bae..eefe929e 100644 --- a/src/soc/decoder/power_fieldsn.py +++ b/src/soc/decoder/power_fieldsn.py @@ -10,7 +10,7 @@ class SignalBitRange(BitRange): self.signal = signal def _rev(self, k): - width = self.signal.shape()[0] + width = self.signal.width return width-1-k def __getitem__(self, subs):