remove alu unneeded op record data
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 6 Jul 2020 22:22:45 +0000 (23:22 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 6 Jul 2020 22:22:45 +0000 (23:22 +0100)
src/soc/fu/alu/alu_input_record.py

index 18ef6ad42e52105ac3961cb9abd2f81f5089e419..4a08a93b5a2f268181ae4b4ef59641aa10d5bb68 100644 (file)
@@ -14,7 +14,6 @@ class CompALUOpSubset(Record):
         layout = (('insn_type', InternalOp),
                   ('fn_unit', Function),
                   ('imm_data', Layout((("imm", 64), ("imm_ok", 1)))),
-                  ('lk', 1),
                   ('rc', Layout((("rc", 1), ("rc_ok", 1)))), # Data
                   ('oe', Layout((("oe", 1), ("oe_ok", 1)))), # Data
                   ('invert_a', 1),
@@ -29,7 +28,6 @@ class CompALUOpSubset(Record):
                   ('is_signed', 1),
                   ('data_len', 4), # actually used by ALU, in OP_EXTS
                   ('insn', 32),
-                  ('byte_reverse', 1),
                   ('sign_extend', 1))
 
         Record.__init__(self, Layout(layout), name=name)
@@ -37,7 +35,6 @@ class CompALUOpSubset(Record):
         # grrr.  Record does not have kwargs
         self.insn_type.reset_less = True
         self.fn_unit.reset_less = True
-        self.lk.reset_less = True
         self.zero_a.reset_less = True
         self.invert_a.reset_less = True
         self.invert_out.reset_less = True
@@ -48,7 +45,6 @@ class CompALUOpSubset(Record):
         self.is_32bit.reset_less = True
         self.is_signed.reset_less = True
         self.data_len.reset_less = True
-        self.byte_reverse.reset_less = True
         self.sign_extend.reset_less = True
 
     def eq_from_execute1(self, other):
@@ -62,7 +58,6 @@ class CompALUOpSubset(Record):
 
     def ports(self):
         return [self.insn_type,
-                self.lk,
                 self.invert_a,
                 self.invert_out,
                 self.input_carry,
@@ -72,6 +67,5 @@ class CompALUOpSubset(Record):
                 self.is_32bit,
                 self.is_signed,
                 self.data_len,
-                self.byte_reverse,
                 self.sign_extend,
         ]