copy binary loaded from disk into data memory as well
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Jul 2020 15:05:04 +0000 (16:05 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Jul 2020 15:05:04 +0000 (16:05 +0100)
src/soc/simple/test/test_microwatt.py

index a737489ed73e4a5a0ad9eae01a5ccc4ea04e9dac..fc2e3f15baa31d7145390488487427569f1316f1 100644 (file)
@@ -14,7 +14,8 @@ from soc.simple.test.test_core import (setup_regs, check_regs,
                                        wait_for_busy_clear,
                                        wait_for_busy_hi)
 from soc.fu.compunits.test.test_compunit import (setup_test_memory,
-                                                 check_sim_memory)
+                                                 check_sim_memory,
+                                                 get_l0_mem)
 
 from soc.simple.test.test_issuer import setup_i_memory
 
@@ -104,6 +105,9 @@ class TestRunner(FHDLTestCase):
                 pc = 0 # start of memory
 
                 yield from setup_i_memory(imem, pc, instructions)
+                # blech!  put the same listing into the data memory
+                data_mem = get_l0_mem(l0)
+                yield from setup_i_memory(data_mem, pc, instructions)
                 #yield from setup_test_memory(l0, sim)
                 yield from setup_regs(core, test)