remove input_cr, output_cr and is_32bit from CompCROpSubset
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 May 2020 19:51:10 +0000 (20:51 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 May 2020 19:51:10 +0000 (20:51 +0100)
src/soc/fu/cr/cr_input_record.py

index 914ddd169b246972711bf459fd1905a1d621736f..7147ec2c08273ebf54979289fc819522147031c1 100644 (file)
@@ -1,7 +1,6 @@
 from nmigen.hdl.rec import Record, Layout
 
-from soc.decoder.power_enums import (InternalOp, Function, CryIn,
-                                     CRInSel, CROutSel)
+from soc.decoder.power_enums import (InternalOp, Function)
 
 
 class CompCROpSubset(Record):
@@ -14,11 +13,8 @@ class CompCROpSubset(Record):
     def __init__(self, name=None):
         layout = (('insn_type', InternalOp),
                   ('fn_unit', Function),
-                  ('input_cr', CRInSel),
-                  ('output_cr', CROutSel),
                   ('read_cr_whole', 1),
                   ('write_cr_whole', 1),
-                  ('is_32bit', 1),
                   )
 
         Record.__init__(self, Layout(layout), name=name)
@@ -26,11 +22,8 @@ class CompCROpSubset(Record):
         # grrr.  Record does not have kwargs
         self.insn_type.reset_less = True
         self.fn_unit.reset_less = True
-        self.input_cr.reset_less = True
-        self.output_cr.reset_less = True
         self.read_cr_whole.reset_less = True
         self.write_cr_whole.reset_less = True
-        self.is_32bit.reset_less = True
 
     def eq_from_execute1(self, other):
         """ use this to copy in from Decode2Execute1Type
@@ -44,9 +37,6 @@ class CompCROpSubset(Record):
     def ports(self):
         return [self.insn_type,
                 self.fn_unit,
-                self.input_cr,
-                self.output_cr,
                 self.read_cr_whole,
                 self.write_cr_whole,
-                self.is_32bit,
         ]