From dd5e33e5d7070e95bdc88d5ec0dcffa63e53444e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 27 Apr 2021 19:46:24 +0100 Subject: [PATCH] return read data out from Loadstore1 only when valid --- src/soc/fu/mmu/fsm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/fu/mmu/fsm.py b/src/soc/fu/mmu/fsm.py index 3eea39cb..31c01a59 100644 --- a/src/soc/fu/mmu/fsm.py +++ b/src/soc/fu/mmu/fsm.py @@ -64,8 +64,8 @@ class LoadStore1(PortInterfaceBase): return st_ok def get_rd_data(self, m): - ld_ok = Const(1, 1) - data = self.d_out.data + ld_ok = self.d_out.valid # indicates read data is valid + data = self.d_out.data # actual read data return data, ld_ok """ -- 2.30.2