add missing file
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 21 Sep 2020 18:45:38 +0000 (19:45 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 21 Sep 2020 18:45:38 +0000 (19:45 +0100)
src/soc/fu/mmu/mmu_input_record.py [new file with mode: 0644]

diff --git a/src/soc/fu/mmu/mmu_input_record.py b/src/soc/fu/mmu/mmu_input_record.py
new file mode 100644 (file)
index 0000000..f063e2e
--- /dev/null
@@ -0,0 +1,18 @@
+from soc.fu.base_input_record import CompOpSubsetBase
+from soc.decoder.power_enums import (MicrOp, Function)
+
+
+class CompMMUOpSubset(CompOpSubsetBase):
+    """CompMMUOpSubset
+
+    a copy of the relevant subset information from Decode2Execute1Type
+    needed for MMU operations.  use with eq_from_execute1 (below) to
+    grab subsets.
+    """
+    def __init__(self, name=None):
+        layout = (('insn_type', MicrOp),
+                  ('fn_unit', Function),
+                  ('insn', 32),
+                  ('zero_a', 1),
+                  )
+        super().__init__(layout, name=name)