wbget.stop = True
def _test_loadstore1_ifetch_invalid(dut, mem):
- mmu = dut.submodules.mmu
- pi = dut.submodules.ldst.pi
- ldst = dut.submodules.ldst # to get at DAR (NOT part of PortInterface)
- wbget.stop = False
-
- yield mmu.rin.prtbl.eq(0x1000000) # set process table
- yield
-
- # TODO
-
- wbget.stop = True
+ ## TODO
def test_loadstore1_ifetch():
sim.run()
def test_loadstore1_ifetch_invalid():
-
m, cmpi = setup_mmu()
mem = {}
sim = Simulator(m)
sim.add_clock(1e-6)
+ icache = m.submodules.ldst.icache
sim.add_sync_process(wrap(_test_loadstore1_ifetch_invalid(m, mem)))
+ # add two wb_get processes onto the *same* memory dictionary.
+ # this shouuuld work.... cross-fingers...
sim.add_sync_process(wrap(wb_get(cmpi.wb_bus(), mem)))
- with sim.write_vcd('test_loadstore1_invalid.vcd'):
+ sim.add_sync_process(wrap(wb_get(icache.bus, mem)))
+ with sim.write_vcd('test_loadstore1_ifetch_invalid.vcd'):
sim.run()
+
if __name__ == '__main__':
test_loadstore1()
test_loadstore1_invalid()
test_loadstore1_ifetch()
- test_loadstore1_ifetch_invalid()
+ #TODO:test_loadstore1_ifetch_invalid()