From caceb716e9417ed8731ef08b7b260a4c077186b2 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 9 Jul 2020 17:21:37 -0700 Subject: [PATCH] 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 --- src/soc/decoder/power_fieldsn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.30.2