mem_types add more types from common.vhdl specifially for icache,
authorCole Poirier <colepoirier@gmail.com>
Sat, 29 Aug 2020 22:41:07 +0000 (15:41 -0700)
committerCole Poirier <colepoirier@gmail.com>
Sat, 29 Aug 2020 22:41:07 +0000 (15:41 -0700)
Fetch1ToIcacheType() and IcacheToDecode1Type()

src/soc/experiment/mem_types.py

index 95d1bf1fd3d53301730cfbb38b66787ee6f32afd..ed7b411fd9eecae60aed41f0c7944418cddbea02 100644 (file)
@@ -25,6 +25,25 @@ class DcacheToMmuType(RecordObject):
         self.err           = Signal()
         self.data          = Signal(64)
 
+class Fetch1ToIcacheType(RecordObject):
+    def __init__(self):
+        super().__init__()
+        self.req           = Signal()
+        self.virt_mode     = Signal()
+        self.priv_mode     = Signal()
+        self.stop_mark     = Signal()
+        self.sequential    = Signal()
+        self.nia           = Signal(64)
+
+class IcacheToDecode1Type(RecordObject):
+    def __init__(self):
+        super().__init__()
+        self.valid         = Signal()
+        self.stop_mark     = Signal()
+        self.fetch_failed  = Signal()
+        self.nia           = Signal(64)
+        self.insn          = Signal(32)
+
 class LoadStore1ToDcacheType(RecordObject):
     def __init__(self):
         super().__init__()