add loop with multiple instructions for testing
authorTobias Platen <tplaten@posteo.de>
Sat, 11 Dec 2021 16:10:18 +0000 (17:10 +0100)
committerTobias Platen <tplaten@posteo.de>
Sat, 11 Dec 2021 16:10:18 +0000 (17:10 +0100)
src/soc/experiment/test/test_loadstore1.py

index 56932c29e4cbda097b3ac631d5baae5cc79627e4..251e3d9b09f35d24cab4690d8ee484b37dff8f1e 100644 (file)
@@ -190,6 +190,13 @@ def _test_loadstore1_ifetch_multi(dut, mem):
     yield
     # TODO fetch instructions from multiple addresses
     # should cope with some addresses being invalid
+    addrs = [0x10200,0x10204,10208,10200]
+    for addr in addrs:
+        yield from debug(dut, "TODO_fetch_from "+hex(addrs))
+        # use the new interface in this test
+        yield
+        yield
+        yield
 
 def _test_loadstore1_ifetch(dut, mem):
     """test_loadstore1_ifetch