fix unittest test_compldst_multi_mmu.py (load now returned byte previously stored)
[soc.git] / src / soc / experiment / test / test_compldst_multi_mmu.py
index 63f9854ed46bd70c340c78dff1c0348c5bd5cfa3..52397262d540b244661a05de80f3e6781dbfbd51 100644 (file)
@@ -35,10 +35,15 @@ from soc.experiment.test.test_wishbone import wb_get
 def ldst_sim(dut):
     yield dut.mmu.rin.prtbl.eq(0x1000000) # set process table
     addr = 0x100e0
-    data = 0xf553b658ba7e1f51
+    data = 0xFF #just a single byte for this test
+    #data = 0xf553b658ba7e1f51
 
     yield from store(dut, addr, 0, data, 0)
     yield
+    ld_data, data_ok, addr = yield from load(dut, addr, 0, 0)
+    print("ret")
+    print(data,data_ok,addr)
+    assert(ld_data==data)
     #TODO
     dut.stop = True # stop simulation