From adb8f51c7fc7d2d9e36de3e9011555029858271d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 8 Jul 2020 16:05:04 +0100 Subject: [PATCH] copy binary loaded from disk into data memory as well --- src/soc/simple/test/test_microwatt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/soc/simple/test/test_microwatt.py b/src/soc/simple/test/test_microwatt.py index a737489e..fc2e3f15 100644 --- a/src/soc/simple/test/test_microwatt.py +++ b/src/soc/simple/test/test_microwatt.py @@ -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) -- 2.30.2