take out unneeded code, add Settle() to see if it helps with bug
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 2 Jun 2020 21:59:34 +0000 (22:59 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 2 Jun 2020 21:59:34 +0000 (22:59 +0100)
src/soc/fu/compunits/test/test_compunit.py

index 605b9127c1b1cf069d6b15a1c9d5c6536d9ac8d2..2c4b43e08b3f5006bc2c6778ef9e05a358cf7270 100644 (file)
@@ -162,10 +162,7 @@ class TestRunner(FHDLTestCase):
                         fname = find_ok(wrok.fields)
                         yield getattr(wrok, fname).eq(0)
 
-                    # first set inputs to zero
-                    for idx in range(cu.n_src):
-                        cu_in = cu.get_in(idx)
-                        yield cu_in.eq(0)
+                    yield Settle()
 
                     # set inputs into CU
                     rd_rel_o = yield cu.rd.rel