1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

initialize clock in test

This commit is contained in:
Chris Felton 2015-03-18 10:17:11 -05:00
parent f921260dd0
commit 6428addb73

View File

@ -140,6 +140,7 @@ def c_testbench_three():
@instance
def tbclk():
clock.next = False
while True:
yield delay(3)
clock.next = not clock