resolved CR mfcr lookup bug (was in power_decoder. ??)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 7 Jun 2020 20:15:58 +0000 (21:15 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 7 Jun 2020 20:20:46 +0000 (21:20 +0100)
https://bugs.libre-soc.org/show_bug.cgi?id=363

src/soc/decoder/power_decoder2.py

index 1dc9b37f141fd95559be53bb973dc863a7b8308e..64ad3913a8f3f3432718fc86c724824c71d21b92 100644 (file)
@@ -445,7 +445,7 @@ class DecodeCROut(Elaboratable):
                 comb += self.cr_bitfield.data.eq(0)
                 comb += self.cr_bitfield.ok.eq(self.rc_in) # only when RC=1
             with m.Case(CROutSel.BF):
-                comb += self.cr_bitfield.data.eq(self.dec.FormX.BF[0:-1])
+                comb += self.cr_bitfield.data.eq(self.dec.FormX.BF)
                 comb += self.cr_bitfield.ok.eq(1)
             with m.Case(CROutSel.BT):
                 comb += self.cr_bitfield.data.eq(self.dec.FormXL.BT[2:5])