From 7ad69408bc64f4737ea26480b1ca458bea65c894 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 18 Mar 2020 16:06:30 +0000 Subject: [PATCH] comment reverse-order of bit-fields --- src/soc/decoder/power_fieldsn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/decoder/power_fieldsn.py b/src/soc/decoder/power_fieldsn.py index a5e03a11..8a12e40d 100644 --- a/src/soc/decoder/power_fieldsn.py +++ b/src/soc/decoder/power_fieldsn.py @@ -32,11 +32,11 @@ class SignalBitRange(BitRange): for t in range(start, stop, step): k = OrderedDict.__getitem__(self, t) print ("t", t, k) - res.append(self.signal[width-k-1]) + res.append(self.signal[width-k-1]) # reverse-order here return Cat(*res) else: k = OrderedDict.__getitem__(self, subs) - return self.signal[width-k-1] + return self.signal[width-k-1] # reverse-order here print ("translated", subs, translated) -- 2.30.2