From: Tobias Platen Date: Tue, 25 May 2021 17:22:46 +0000 (+0200) Subject: wait_ldok: add debug output count X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2e20eb38a29d603204302056c174f974cae6f58;p=soc.git wait_ldok: add debug output count --- 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