From: Luke Kenneth Casson Leighton Date: Fri, 5 Jun 2020 03:37:41 +0000 (+0100) Subject: add OP_RFID SRR0/SRR1 in PowerDecode2 X-Git-Tag: div_pipeline~570 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e6c07139886fd91db990e0f47b452e32a10c3862;p=soc.git add OP_RFID SRR0/SRR1 in PowerDecode2 --- diff --git a/src/soc/decoder/power_decoder2.py b/src/soc/decoder/power_decoder2.py index f166bec2..9dcf9e3f 100644 --- a/src/soc/decoder/power_decoder2.py +++ b/src/soc/decoder/power_decoder2.py @@ -241,6 +241,12 @@ class DecodeOut(Elaboratable): with m.If(~self.dec.BO[2]): # 3.0B p38 BO2=0, use CTR reg comb += self.fast_out.data.eq(FastRegs.CTR) # constant: CTR comb += self.fast_out.ok.eq(1) + + # RFID 1st spr (fast) + with m.If(op.internal_op == InternalOp.OP_RFID): + comb += self.fast_out.data.eq(FastRegs.SRR0) # constant: SRR0 + comb += self.fast_out.ok.eq(1) + return m @@ -275,6 +281,11 @@ class DecodeOut2(Elaboratable): comb += self.fast_out.data.eq(FastRegs.LR) # constant: LR comb += self.fast_out.ok.eq(1) + # RFID 2nd spr (fast) + with m.If(op.internal_op == InternalOp.OP_RFID): + comb += self.fast_out.data.eq(FastRegs.SRR1) # constant: SRR1 + comb += self.fast_out.ok.eq(1) + return m