Skip to content

Commit

Permalink
Fix test using delays for comb propagation instead of additional cloc…
Browse files Browse the repository at this point in the history
…k pulses
  • Loading branch information
Jean THOMAS committed Aug 5, 2020
1 parent e5f4e78 commit 003110d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gram/test/test_core_refresher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def generic_test(abits, babits, trp, trfc):

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")
Expand Down Expand Up @@ -77,8 +77,7 @@ def process():
yield

yield dut.req_i.eq(0)
yield
yield
yield; yield Delay(1e-8)

self.assertFalse((yield dut.req_o))

Expand Down

0 comments on commit 003110d

Please sign in to comment.