back.pysim: delay clock processes by one half period.
Makes it easier to see initial delta cycles.
This commit is contained in:
parent
3bb7a87e0f
commit
e4d08d2855
|
@ -231,6 +231,7 @@ class Simulator:
|
||||||
half_period = period / 2
|
half_period = period / 2
|
||||||
def clk_process():
|
def clk_process():
|
||||||
yield Passive()
|
yield Passive()
|
||||||
|
yield Delay(half_period)
|
||||||
while True:
|
while True:
|
||||||
yield clk.eq(1)
|
yield clk.eq(1)
|
||||||
yield Delay(half_period)
|
yield Delay(half_period)
|
||||||
|
|
Loading…
Reference in a new issue