From: Tobias Platen Date: Tue, 25 May 2021 19:00:41 +0000 (+0200) Subject: test_ldst_pi.py: fix race condition causing early stop X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32b0d64c91ac2830e6526f1a020c9402fb208ad0;p=soc.git test_ldst_pi.py: fix race condition causing early stop --- 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,