add insn and fn_unit to CompLDSTOpSubset
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 7 Sep 2020 18:24:08 +0000 (19:24 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 7 Sep 2020 21:14:45 +0000 (22:14 +0100)
src/soc/fu/ldst/ldst_input_record.py

index 5560ba6cd781a1d5bb636fb1ed9b520d5dfc363e..57787e469bd25f236ba8ca72f1bb7c602cbc3402 100644 (file)
@@ -15,6 +15,7 @@ class CompLDSTOpSubset(CompOpSubsetBase):
     """
     def __init__(self, name=None):
         layout = (('insn_type', MicrOp),
+                  ('fn_unit', Function),
                   ('imm_data', Layout((("data", 64), ("ok", 1)))),
                   ('zero_a', 1),
                   ('rc', Layout((("rc", 1), ("ok", 1)))), # for later
@@ -24,7 +25,9 @@ class CompLDSTOpSubset(CompOpSubsetBase):
                   ('data_len', 4),
                   ('byte_reverse', 1),
                   ('sign_extend', 1),
-                  ('ldst_mode', LDSTMode))
+                  ('ldst_mode', LDSTMode),
+                  ('insn', 32),
+                 )
 
         super().__init__(layout, name=name)