From a2e20eb38a29d603204302056c174f974cae6f58 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Tue, 25 May 2021 19:22:46 +0200 Subject: [PATCH] wait_ldok: add debug output count --- src/soc/config/test/test_pi2ls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/soc/config/test/test_pi2ls.py b/src/soc/config/test/test_pi2ls.py index bb363a38..eb20177c 100644 --- a/src/soc/config/test/test_pi2ls.py +++ b/src/soc/config/test/test_pi2ls.py @@ -27,10 +27,12 @@ def wait_addr(port): def wait_ldok(port): + cnt = 0 while True: ldok = yield port.ld.ok exc_happened = yield port.exc_o.happened - print("ldok", ldok, "exception", exc_happened) + print("ldok", ldok, "exception", exc_happened, "count", cnt) + cnt += 1 if ldok or exc_happened: break yield -- 2.30.2