projects
/
gram.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5f4e78
)
Fix test using delays for comb propagation instead of additional clock pulses
author
Jean THOMAS
<git0@pub.jeanthomas.me>
Wed, 5 Aug 2020 13:33:01 +0000
(15:33 +0200)
committer
Jean THOMAS
<git0@pub.jeanthomas.me>
Wed, 5 Aug 2020 13:33:01 +0000
(15:33 +0200)
gram/test/test_core_refresher.py
patch
|
blob
|
history
diff --git
a/gram/test/test_core_refresher.py
b/gram/test/test_core_refresher.py
index 7460442edcfb705ed91b0352d3788772b56f1b08..6c924d1727364a031869d9ea64295b594d62d97e 100644
(file)
--- 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))