From: Luke Kenneth Casson Leighton Date: Sat, 20 Feb 2021 23:15:06 +0000 (+0000) Subject: add CR1 to DecodeCRIn/Out X-Git-Tag: convert-csv-opcode-to-binary~188 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa33c1b9de05e7ff3fbd5ce577f5917f3d142d32;p=soc.git add CR1 to DecodeCRIn/Out --- diff --git a/src/soc/decoder/power_decoder2.py b/src/soc/decoder/power_decoder2.py index 85f7b32d..05914987 100644 --- a/src/soc/decoder/power_decoder2.py +++ b/src/soc/decoder/power_decoder2.py @@ -681,6 +681,9 @@ class DecodeCRIn(Elaboratable): with m.Case(CRInSel.CR0): comb += self.cr_bitfield.data.eq(0) # CR0 (MSB0 numbering) comb += self.cr_bitfield.ok.eq(1) + with m.Case(CRInSel.CR1): + comb += self.cr_bitfield.data.eq(1) # CR1 (MSB0 numbering) + comb += self.cr_bitfield.ok.eq(1) with m.Case(CRInSel.BI): comb += self.cr_bitfield.data.eq(self.dec.BI[2:5]) comb += self.cr_bitfield.ok.eq(1) @@ -743,6 +746,9 @@ class DecodeCROut(Elaboratable): with m.Case(CROutSel.CR0): comb += self.cr_bitfield.data.eq(0) # CR0 (MSB0 numbering) comb += self.cr_bitfield.ok.eq(self.rc_in) # only when RC=1 + with m.Case(CROutSel.CR1): + comb += self.cr_bitfield.data.eq(1) # CR1 (MSB0 numbering) + 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) comb += self.cr_bitfield.ok.eq(1)