From 9035c898eb9bcaf792df5d2a0e0de8848d4b64a6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 2 Jun 2020 22:59:34 +0100 Subject: [PATCH] take out unneeded code, add Settle() to see if it helps with bug --- src/soc/fu/compunits/test/test_compunit.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/soc/fu/compunits/test/test_compunit.py b/src/soc/fu/compunits/test/test_compunit.py index 605b9127..2c4b43e0 100644 --- a/src/soc/fu/compunits/test/test_compunit.py +++ b/src/soc/fu/compunits/test/test_compunit.py @@ -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 -- 2.30.2