return read data out from Loadstore1 only when valid
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 27 Apr 2021 18:46:24 +0000 (19:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 27 Apr 2021 18:46:24 +0000 (19:46 +0100)
src/soc/fu/mmu/fsm.py

index 3eea39cbbb43340eb857f8346c66c0fe1b3de1f9..31c01a595995739f8f1d06b22ff7b66886928f4b 100644 (file)
@@ -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
 
     """