From 4629e4d34dae8182798d96cf5e20c4fd16b6a0c7 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 24 Nov 2021 17:44:36 +0000 Subject: [PATCH] when allow_overlap enabled do a manual wait until all FUs have entirely finished befor going on to read the regfile state this really should be done with the DMI interface, which needs updating --- src/soc/simple/test/test_runner.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/soc/simple/test/test_runner.py b/src/soc/simple/test/test_runner.py index eabff585..d33e8fbf 100644 --- a/src/soc/simple/test/test_runner.py +++ b/src/soc/simple/test/test_runner.py @@ -243,9 +243,12 @@ class HDLRunner(StateRunner): if terminated: break - # wait until all settled - #while (yield self.issuer.any_busy): - # yield + if self.dut.allow_overlap: + # wait until all settled + # XXX really this should be in DMI, which should in turn + # use issuer.any_busy to not send back "stopped" signal + while (yield self.issuer.any_busy): + yield if self.dut.allow_overlap: # get last state, at end of run -- 2.30.2