From: Jean THOMAS Date: Wed, 5 Aug 2020 13:33:01 +0000 (+0200) Subject: Fix test using delays for comb propagation instead of additional clock pulses X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=003110dc435dfd8afe5c241bb070d230c32ce5fb;p=gram.git Fix test using delays for comb propagation instead of additional clock pulses --- diff --git a/gram/test/test_core_refresher.py b/gram/test/test_core_refresher.py index 7460442..6c924d1 100644 --- a/gram/test/test_core_refresher.py +++ b/gram/test/test_core_refresher.py @@ -13,11 +13,11 @@ class RefreshExecuterTestCase(FHDLTestCase): def process(): yield dut.start.eq(1) - yield - yield + yield; yield Delay(1e-8) self.assertEqual((yield dut.a), 2**10) for i in range(trp): yield + yield Delay(1e-8) self.assertEqual((yield dut.a), 0) runSimulation(dut, process, "test_refreshexecuter.vcd") @@ -77,8 +77,7 @@ class RefreshPostponerTestCase(FHDLTestCase): yield yield dut.req_i.eq(0) - yield - yield + yield; yield Delay(1e-8) self.assertFalse((yield dut.req_o))