rename FLAGS to RCOE
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 1 Sep 2022 15:47:42 +0000 (16:47 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 1 Sep 2022 15:47:42 +0000 (16:47 +0100)
src/openpower/decoder/power_decoder.py
src/openpower/decoder/power_decoder2.py
src/openpower/decoder/power_enums.py

index d4cafe90a3a076ab8ddafa46c6f4f67ef5e5fd76..5ef452c6004ac48d8ab24b44ba4d67b5eb49ae92 100644 (file)
@@ -94,7 +94,7 @@ from nmigen.cli import rtlil, verilog
 from openpower.decoder.power_enums import (Function, Form, MicrOp,
                                            In1Sel, In2Sel, In3Sel, OutSel,
                                            SVEXTRA, SVEtype, SVPtype, # Simple-V
-                                           FLAGS, LdstLen, LDSTMode, CryIn,
+                                           RCOE, LdstLen, LDSTMode, CryIn,
                                            single_bit_flags, CRInSel,
                                            CROutSel, get_signal_name,
                                            default_values, insns, asmidx,
@@ -140,7 +140,7 @@ power_op_types = {'function_unit': Function,
                   'sv_cr_out': SVEXTRA,
                   'ldst_len': LdstLen,
                   'upd': LDSTMode,
-                  'rc_sel': FLAGS,
+                  'rc_sel': RCOE,
                   'cry_in': CryIn
                   }
 
index 5675c27e2d65ecdf9b123d38c52075bff747a55f..cedb35484dda677ff10b1119f3776b2f76485747 100644 (file)
@@ -31,7 +31,7 @@ from openpower.decoder.power_enums import (MicrOp, CryIn, Function,
                                            CRInSel, CROutSel,
                                            LdstLen, In1Sel, In2Sel, In3Sel,
                                            OutSel, SPRfull, SPRreduced,
-                                           FLAGS, SVP64LDSTmode, LDSTMode,
+                                           RCOE, SVP64LDSTmode, LDSTMode,
                                            SVEXTRA, SVEtype, SVPtype)
 from openpower.decoder.decode2execute1 import (Decode2ToExecute1Type, Data,
                                                Decode2ToOperand)
@@ -529,7 +529,7 @@ class DecodeRC(Elaboratable):
 
     def __init__(self, dec):
         self.dec = dec
-        self.sel_in = Signal(FLAGS, reset_less=True)
+        self.sel_in = Signal(RCOE, reset_less=True)
         self.insn_in = Signal(32, reset_less=True)
         self.rc_out = Data(1, "rc")
 
@@ -539,13 +539,13 @@ class DecodeRC(Elaboratable):
 
         # select Record bit out field
         with m.Switch(self.sel_in):
-            with m.Case(FLAGS.RC_OE, FLAGS.RC_ONLY):
+            with m.Case(RCOE.RC_OE, RCOE.RC_ONLY):
                 comb += self.rc_out.data.eq(self.dec.Rc)
                 comb += self.rc_out.ok.eq(1)
-            with m.Case(FLAGS.ONE):
+            with m.Case(RCOE.ONE):
                 comb += self.rc_out.data.eq(1)
                 comb += self.rc_out.ok.eq(1)
-            with m.Case(FLAGS.NONE):
+            with m.Case(RCOE.NONE):
                 comb += self.rc_out.data.eq(0)
                 comb += self.rc_out.ok.eq(1)
 
@@ -567,7 +567,7 @@ class DecodeOE(Elaboratable):
     def __init__(self, dec, op):
         self.dec = dec
         self.op = op
-        self.sel_in = Signal(FLAGS, reset_less=True)
+        self.sel_in = Signal(RCOE, reset_less=True)
         self.insn_in = Signal(32, reset_less=True)
         self.oe_out = Data(1, "oe")
 
@@ -605,7 +605,7 @@ class DecodeOE(Elaboratable):
             with m.Default():
                 # select OE bit out field
                 with m.Switch(self.sel_in):
-                    with m.Case(FLAGS.RC_OE):
+                    with m.Case(RCOE.RC_OE):
                         comb += self.oe_out.data.eq(self.dec.OE)
                         comb += self.oe_out.ok.eq(1)
 
index b1369b82d023e2bd68cbafd4be2b2c9dfada3749..693a4879b1bff80ffe3fbde83d45c732f25e5a22 100644 (file)
@@ -671,7 +671,7 @@ class LDSTMode(Enum):
 
 
 @unique
-class FLAGS(Enum):
+class RCOE(Enum):
     NONE = 0
     ONE = 1
     RC_OE = 2    # includes OE