From 58d2d830f087c5edecbbf68ea24336c622ff9149 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 28 May 2020 13:26:21 +0100 Subject: [PATCH] extra check on rd.req in test_alu_compunit --- src/soc/fu/compunits/test/test_alu_compunit.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/soc/fu/compunits/test/test_alu_compunit.py b/src/soc/fu/compunits/test/test_alu_compunit.py index 3b2dc1ec..1be45181 100644 --- a/src/soc/fu/compunits/test/test_alu_compunit.py +++ b/src/soc/fu/compunits/test/test_alu_compunit.py @@ -19,12 +19,18 @@ def set_cu_input(cu, idx, data): yield cu.src_i[idx].eq(data) while True: rd_rel_o = yield cu.rd.rel[idx] - print ("rd_rel %d wait" % idx, rd_rel_o) + print ("rd_rel %d wait HI" % idx, rd_rel_o) if rd_rel_o: break yield yield cu.rd.go[idx].eq(1) - yield + while True: + yield + rd_rel_o = yield cu.rd.rel[idx] + if rd_rel_o: + break + print ("rd_rel %d wait HI" % idx, rd_rel_o) + yield yield cu.rd.go[idx].eq(0) -- 2.30.2