From 32b0d64c91ac2830e6526f1a020c9402fb208ad0 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Tue, 25 May 2021 21:00:41 +0200 Subject: [PATCH] test_ldst_pi.py: fix race condition causing early stop --- src/soc/experiment/test/test_ldst_pi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/soc/experiment/test/test_ldst_pi.py b/src/soc/experiment/test/test_ldst_pi.py index 6574de6e..f77121d0 100644 --- a/src/soc/experiment/test/test_ldst_pi.py +++ b/src/soc/experiment/test/test_ldst_pi.py @@ -38,6 +38,7 @@ def wb_get(wb, mem): """ global stop + assert(stop==False) while not stop: while True: # wait for dc_valid @@ -155,6 +156,9 @@ def ldst_sim(dut): def setup_mmu(): + global stop + stop = False + pspec = TestMemPspec(ldst_ifacetype='mmu_cache_wb', imem_ifacetype='', addr_wid=48, -- 2.30.2