From 003110dc435dfd8afe5c241bb070d230c32ce5fb Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Wed, 5 Aug 2020 15:33:01 +0200 Subject: [PATCH] Fix test using delays for comb propagation instead of additional clock pulses --- gram/test/test_core_refresher.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)) -- 2.30.2