From 6ae5a3a0b9a28161e95c224012b4aa40316e517d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 11 Sep 2020 18:55:18 +0100 Subject: [PATCH] wrong width for data / addr --- src/soc/experiment/mem_types.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/soc/experiment/mem_types.py b/src/soc/experiment/mem_types.py index 20714a51..b65ed876 100644 --- a/src/soc/experiment/mem_types.py +++ b/src/soc/experiment/mem_types.py @@ -11,7 +11,7 @@ class DCacheToLoadStore1Type(RecordObject): def __init__(self, name=None): super().__init__(name=name) self.valid = Signal() - self.data = Signal() + self.data = Signal(64) self.store_done = Signal() self.error = Signal() self.cache_paradox = Signal() @@ -25,6 +25,7 @@ class DCacheToMMUType(RecordObject): self.err = Signal() self.data = Signal(64) + class Fetch1ToICacheType(RecordObject): def __init__(self): super().__init__() @@ -35,6 +36,7 @@ class Fetch1ToICacheType(RecordObject): self.sequential = Signal() self.nia = Signal(64) + class ICacheToDecode1Type(RecordObject): def __init__(self): super().__init__() @@ -44,6 +46,7 @@ class ICacheToDecode1Type(RecordObject): self.nia = Signal(64) self.insn = Signal(32) + class LoadStore1ToDCacheType(RecordObject): def __init__(self, name=None): super().__init__(name=name) @@ -55,9 +58,9 @@ class LoadStore1ToDCacheType(RecordObject): self.reserve = Signal() self.virt_mode = Signal() self.priv_mode = Signal() - self.addr = Signal() - self.data = Signal() - self.byte_sel = Signal() + self.addr = Signal(64) + self.data = Signal(64) + self.byte_sel = Signal(8) class LoadStore1ToMMUType(RecordObject): def __init__(self): @@ -73,6 +76,7 @@ class LoadStore1ToMMUType(RecordObject): self.addr = Signal(64) self.rs = Signal(64) + class MMUToLoadStore1Type(RecordObject): def __init__(self): super().__init__() @@ -85,6 +89,7 @@ class MMUToLoadStore1Type(RecordObject): self.rc_error = Signal() self.sprval = Signal(64) + class MMUToDCacheType(RecordObject): def __init__(self, name=None): super().__init__(name=name) @@ -95,6 +100,7 @@ class MMUToDCacheType(RecordObject): self.addr = Signal(64) self.pte = Signal(64) + class MMUToICacheType(RecordObject): def __init__(self): super().__init__() -- 2.30.2