From 1cfd61edb85672dddfaf9c41f6874514dc2073d9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 23 May 2020 04:13:22 +0100 Subject: [PATCH] select bits 2:5 from BC to get CR0 to 7 in DecodeCRin --- src/soc/decoder/power_decoder2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/decoder/power_decoder2.py b/src/soc/decoder/power_decoder2.py index dbd87f96..e5aa0321 100644 --- a/src/soc/decoder/power_decoder2.py +++ b/src/soc/decoder/power_decoder2.py @@ -310,7 +310,7 @@ class DecodeCRIn(Elaboratable): comb += self.cr_bitfield_o.data.eq(self.dec.BT[2:5]) comb += self.cr_bitfield_o.ok.eq(1) with m.Case(CRInSel.BC): - comb += self.cr_bitfield.data.eq(self.dec.BC[0:-1]) + comb += self.cr_bitfield.data.eq(self.dec.BC[2:5]) comb += self.cr_bitfield.ok.eq(1) with m.Case(CRInSel.WHOLE_REG): comb += self.whole_reg.eq(1) -- 2.30.2