add FRS as destination to PowerDecoder2 DecodeOut
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 12 Jul 2022 09:30:21 +0000 (10:30 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 12 Jul 2022 09:30:21 +0000 (10:30 +0100)
src/openpower/decoder/power_decoder2.py

index 7ac8c4b48c0c34cea8727c36a3ebed8b87e297f4..cc2be39e32998dce556b6407675139901296a9c7 100644 (file)
@@ -385,7 +385,7 @@ class DecodeC(Elaboratable):
 class DecodeOut(Elaboratable):
     """DecodeOut from instruction
 
-    decodes output register RA, RT or SPR
+    decodes output register RA, RT, FRS, FRT, or SPR
     """
 
     def __init__(self, dec, op, regreduce_en):
@@ -412,6 +412,9 @@ class DecodeOut(Elaboratable):
 
         # select Register out field
         with m.Switch(self.sel_in):
+            with m.Case(OutSel.FRS):
+                comb += reg.data.eq(self.dec.FRS)
+                comb += reg.ok.eq(1)
             with m.Case(OutSel.FRT):
                 comb += reg.data.eq(self.dec.FRT)
                 comb += reg.ok.eq(1)